GithubHelp home page GithubHelp logo

share's Introduction

What's Git

  • Version Control System, VCS
  • content-addressable
  • BLOB Tree commit
Key = sha1(file_header + file_content)

Value = zlib(file_content)
  • benefit vs svn(or other traditional cvs)
1.Distribution
2.Branch
  • Author: Linus(version 1 two week, 2005)

Git commands

Frequent use for everyone:

  • add
  • branch
  • checkout
  • clone
  • commit
  • diff
  • fetch
  • merge
  • pull
  • push
  • log
  • status

Frequent use for me:

  • stash
  • stash pop

Maybe useful:

  • blame
  • rebase Forward-port local commits to the updated upstream head
  • reset
  • grep
  • init
  • mv
  • rm
  • show
  • tag

Practice

E1

git init --bare share.git

E2

git clone url

E3

git checkout -b test

E4

vim .gitignore
git add
git commit -m'First commit'
git push origin test:test

E5

git reset

E6

git diff
git merge

E7

git blame

E8

git pull
git push

share's People

Contributors

dskwe avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.