The difference between git and the traditional version management of SVN and TFS:
- Local machines also have branching, code-base concepts
- The common practice of SVN is to commit to the repository every time a code is written, but Git commits to the local (commit) and synchronizes the local code to the server (push) when there is a stable version locally.
- Because the local also has the code warehouse, so the remote warehouse failure, the programmer can also enjoy the code of the submission, rollback, etc., can wait for the final network recovery last one-time commit.
- The disadvantage of git is that the team must have a full-time code-merging staff to merge the code that everyone submits (everyone changes the batch before committing, and the conflict happens very often).
The command logs encountered in Git daily use:
1. Add all newly added files to staging area, and note that there is a space and a decimal point behind it.
git Add.
2. Submit to Local
" Submit a Comment "
3.push to remote, where Origin refers to the remote host name, develop refers to the remote branch name
Git push origin develop
4. Download the latest remote code to local, and merge with local code, again, origin refers to the remote host name, develop refers to the remote branch name
Git pull origin Develop
"Git" Git usage summary