The power of Git is that
1. Branching can be established anywhere, so that the development of different functions will not be relied upon, so that different versions of the code can be completely preserved.
2. You can reverse the code version at any time to a correct time, back to the clock.
3. You can use reset to remove the locally-submitted version of redundancy.
4. You can use the stash to stage a series of zero operations. Spatial reversal.
5. Allows users to easily switch between local and remote branches, and version management is very flexible. (spatial reflux)
Git workflow:
Synchronize with remote repository (pull,fetch); modify files; View changes (Show,status);
Loading changes (add Or–a), submitting the loaded changes (commit), repeating, uploading (push)
????????? git config username and email:
? Open Gitbash
git config--gloabl user.name "Your name"
git config--global user.email "[Email protected]"
git config--list
Exit
First git library?: Tell Git who you are
Gitconfig–global User.Name "Xucons"
Gitconfig–global user.email "[Email protected]"
Create a library Gitinit
Cloning a library Gitclone git://git.kernel.org/scm/git/git.git
Git Learning Tips Summary