RepoGit常用命令总结
Posted Geek.Fan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RepoGit常用命令总结相关的知识,希望对你有一定的参考价值。
1、 查看本地和远程的分支
git branch -av
2、查看远程地址
git remote -v
3、重新加载远程仓库信息
git fetch
4、查看git 仓库当前状态
git status
5、查看未修改的详细信息
git diff
6、查看多人提交
git log --name-status --author="xxx\\|xxx"
repo foall -c 'git log --name-status --author="xxx\\|xxx" '
7、将修改保存成文件
repo forall -p -c 'git log --author=xxx' > .txt
8、 创建一个新的分支
repo start xxx -all
9、查看所有仓库修改未提交
repo status
10、 切换到另外一个分支
repo forall -c 'git checkout xxx'
11、 查看项目中所有的修改
repo forall -p -c 'git log --author=xxx'
12、查看某个提交的修改信息
git show commit-d
13、 生成path
git diff > commit.patch
14、检查patch
git apply --check commit.patch
15、应用补丁
git apply commit.patch
16、打单个补丁
git apply commit .patch
17、打多个补丁
git apply ../patch/*.patch
18、已经add但是未commit的修改
git diff --cached > commit.patch
以上是关于RepoGit常用命令总结的主要内容,如果未能解决你的问题,请参考以下文章