1. pull = fetch + merge
2. git config --global user.name "tom"
git config --global user.email "tom@gmail.com"
查看上述设置是否成功:
git config --global --list
3. 在命令行窗口中使用不同的颜色显示不同类型的内容:
git config --global color.ui "auto"
4. 获取git内置帮助信息:
git help <command>
5. git version
git help
6. git init --bare xxx.git
7. git add index.html
git commint -m "commit message" -a(提交全部修改过的文件)
8. git log
9. git status
10. git branch new_branch_name(创建本地分支)
git branch -d branch_name(删除本地分支)
git branch -a(查看所有分支)
git branch -r(查看远程分支)
git push origin branch_name:branch_name(本地分支推到远程,冒号前为本地分支,冒号后为远程分支,远程分支没有的话此命令会自动创建)
11. git checkout branch_name(切换分支)
12. git tag tag_name branch_name
git tag
13. git rebase
14. git clone remote_version_repo_address local_dir