有沒有辦法列出由特定作者創建的文件使用Git? 我也需要通過文件名(正則表達式/模式)或創建它們的文件夾來篩選這些結果。Git - 作者創建的列表文件
所以我在找的是作者創建(未更新)文件的列表,沒有文件名重複且沒有提交消息。
有沒有辦法列出由特定作者創建的文件使用Git? 我也需要通過文件名(正則表達式/模式)或創建它們的文件夾來篩選這些結果。Git - 作者創建的列表文件
所以我在找的是作者創建(未更新)文件的列表,沒有文件名重複且沒有提交消息。
列出所有提交添加文件,顯示了提交作者和添加的文件;然後將作者粘貼到列出的每個文件的前面:
# add `--author=pattern` to the log arguments to restrict by author
# add anything you like to the `--format=` template
# add any restrictions you like to the `/^A\t/` selector in the awk,
# ... say /^A\t/ && /\.c$/ { etc.
git log --name-status --diff-filter=A --format='> %aN' \
| awk '/^>/ {tagline=$0}
/^A\t/ {print tagline "\t" $0}'
完美:'git log --author =「Vadorequest」--name-status --diff-filter = A --format ='>%aN'| awk'/ ^>/{tagline = $ 0}/^ A \ t/{print tagline「\ t」$ 0}''。謝謝! – Vadorequest
更接近,但我不想通過提交來看到它,既沒有提交消息也沒有文件名重複。但是,謝謝。 – Vadorequest
請參閱http://stackoverflow.com/questions/4259996/how-can-i-view-a-git-log-of-just-one -users-commitits – PascalPrecht
我想要做的比git log author = foobar更復雜一點。我發現最近的是'git whatchanged --author =「foobar」--name-only --oneline' – Vadorequest