One, the tutorial
git - Easy Guide http://www.bootcss.com/p/git-guide/
git tutorial http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/
Introduction to Git that monkeys can understandhttp ://backlogtool.com/git-guide/cn/intro/intro1_2.html
Concise usage of Git rebase https://php-adaiw.rhcloud.com/?p=964
Second, the basic command
Basic process:
git add . (add all changes to the local warehouse)
git commit -m " ..." (add a comment for this commit)
git pull --rebase (sync and merge remote server code to local)
git push (commit the merged code to the remote server)
git status to view the current status
Three, related commands
git discard local changes force update
git fetch --all
git reset --hard origin/master
View remote server information (git configuration information: remote server connection information)
cat .git/config
Copy the local ssh key
cat ~/.ssh/id_rsa.pub| pbcopy
tag
git tag -a 0.1.3 -m “Release version 0.1.3″
Detailed explanation: git tag is a command
-a 0.1.3 is to add a tag named 0.1.3
-m is followed by a comment for the label
The tagging operation happens after we commit the modification to the local repository. complete example
git add .
git commit -m “fixed some bugs”
git tag -a 0.1.3 -m “Release version 0.1.3″
Share commit tags to remote servers
git push origin master
git push origin --tags
The --tags parameter indicates that all tags are submitted to the server, and the normal git push origin master operation will not push tags to the server.
command to delete tags
git tag -d 0.1.3
Delete the tag of the remote server
git push origin :refs/tags/0.1.3
New branch http://blog.csdn.net/arkblue/article/details/9568249
Remove idea from git:
$ git rm--cached -r .idea