// account password clone remote project
git clone http: // login: password @ address the project
// view the current status
git status
// View content
git diff
// add and commit
git add .
git commit 'footnotes' -m
// push to remote branch
git push origin branch name
// pull remote code (native code update)
git pull origin branch name
// View historical submitted
git log
// fall back to a version
git reset --hard version number
After // fallback version of history, like the previous version of View
Go reflog
// remote code mandatory coverage native code (three steps)
git fetch --all
git reset --hard origin/master
git pull
// remote code to native code mandatory coverage
git push origin branch name -f
// switch branch
git checkout branch name
// switch to generate a new branch and the branch
git checkout -b new branch name
// merge a branch of the main branch b
git checkout a
git pull // update a branch code
git checkout b
git pull // b branch code update
git merge a // b to merge a branch of the branch
git checkout a
git merge b // a carrier combined branch b