tar git diff

来源:互联网 发布:实时 股票 分时 数据 编辑:程序博客网 时间:2024/06/06 00:57

比如打包所有的修改文件:


tar czf changed-files.tar.gz `git diff --name-only [diff options]`
git diff --cached

--cached means show the changes in the cache/index (i.e. staged changes) against the current HEAD--staged is a synonym for --cached.

--staged


git status -s | cut -c4-

0 0