我想对每个没有暂存更改的文件执行一些 shell 命令。
例如,如果git status显示
On branch xxxxxxx
Your branch is up-to-date with 'origin/xxxxxxxxx'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: client/.../reports.coffee
modified: client.../tools.coffee
Run Code Online (Sandbox Code Playgroud)
我想对文件reports.coffee和tools.coffee.
我不想使用,find因为文件可以在不同的时间更改。我怎样才能做到这一点?
| 归档时间: |
|
| 查看次数: |
1600 次 |
| 最近记录: |