Commonly used commands and functions git

Several major command

git add # modified workspace submitted to the staging area
git commit # commit changes to the staging area to the current branch
git reset # fall back to a version of
git stash # save of changed
git pull # update code from a remote
git push # local code updates to remote branch
git reflog # View history commands
git status # to view the current state of the repository
git diff # View modify
git log # View commit history
git revert # modify a fallback

Use the command git archive

Documents in http://git-scm.com/docs/git-archive

Usage is simple

git archive --format zip --output /path/to/file.zip master # the master package to the specified file in zip format

 

Guess you like

Origin www.cnblogs.com/tyadmin/p/11241213.html