机器人 救救瓜
Toggle navigation
Home
SCM-tool
Linux
Jenkins
SVN
other
About Me
Archives
Tags
git 查看两个commit 之间的修改
? gitlab ?
2019-01-17 11:46:46
1374
1
0
gua_l
? gitlab ?
---------- git 查看两个commit 之间的修改 ---------- 查看两个commit 之间修改的log ``` git log --pretty=format:"%h %s" | head -n 50 | sed -n "/4e27169/,/4e27169/p" git log 4e27169 ^4e27169 ``` ---------- 查看两个commit 之间修改的详情 ``` #查看两个commit 之间修改的文件夹 git diff $commit-pre $commit-cur --name-only |cut -d / -f 1 | sort -u #查看两个commit 之间修改的文件 git diff $commit-pre $commit-cur --numstat #其他的选项查看标记修改和增加或修改行数 git diff $commit-pre $commit-cur --numstat git diff $commit-pre $commit-cur --dirstat git diff $commit-pre $commit-cur --shortstat git diff $commit-pre $commit-cur --name-only git diff $commit-pre $commit-cur --name-status ```
Pre:
Shell里截取的用法
Next:
Linux (Centos/redhat) 调整磁盘分区大小
1
likes
1374
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.