1. 克隆代码
git clone [address]
git clone -b [branchame] [address]
2. remote操作
git remote
git remote -v
git remote add [name] [address]
git remote show [name]
git remote remove [name]
git remote rename [oldname] [newname]
3. 拉取操作
git pull
git pull [origin] [branch]
4. 推送操作
git add .
git commit -m "注释"
git push [remote-name] [branch-name]
5. 分支操作
git branch
git branch -m [oldname] [newname]
git branch -d [name]
git branch -D [name]
git push [remote-name] -d [name]
git checkout [branch-name]
git checkout -b [name]
6. 合并操作
git merge [branch-name]