1.repo start xxx -all 创建一个新的分支
2.repo status 查看所有仓库修改未提交
3.repo forall -c 'git checkout xxx' 切换到另外一个分支
4.repo forall -p -c 'git log --author=xxx' 查看项目中所有的修改
5.git branch -av 查看本地和远程的分支
6.git remote -v 查看远程地址
7.git fetch 重新加载远程仓库信息
8.git status 查看git 仓库当前状态
9.git diff 查看未修改的详细信息
10.git show commit-d 查看某个提交的修改信息
11.git format-patch commit-id 生成path
12.git am xxx.patch 打补丁
14. 当更新id_rsa/id_rsa.pub文件时候执行如下命令生效
ssh-agent bash
ssh-add ~/.ssh/id_rsa
15.查看多人提交
git log --name-status --author="xxx\|xxx"
repo foall -c 'git log --name-status --author="xxx\|xxx" '
16.将修改保存成文件
repo forall -p -c 'git log --author=xxx' > .txt
17.tags的使用
git tag 可以创建新的tag,但是tag需要显示的上传和下载
git push origin --tags
git pull origin --tags
18. git删除远程分支
git push origin --delete branchname