- 克隆仓库
git clone [address] [local-name] - 查看本地分支
git branch,查看远程分支git branch -r - 删除本地分支
git branch -d [branch-name] - 获取远程分支
git fetch,然后git checkout -b [local-branch] origin/[remote-branch] - 切换分支
git checkout [branch-name] - 合并指定分支到当前分支
git merge [branch] - 提交代码
git add -Agit commit -m "[message]"git push origin [remote-branch] - 迁移仓库
git remote set-url origin [new_remote_git_address] - 查看当前仓库的提交(commit)日志
git log - 将用户名设为author
git config --global user.name [author] - 将用户邮箱设为指定邮箱
git config --global user.email [author@corpmail.com]