Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当使用commit -a默认编辑器提交时,会弹出git status命令的内容(但所有行都以井号开头)。
commit -a
git status
是否可以git diff预填充编辑器的输出而不是内容git status?
git diff
是的,这可以通过使用--verbose旗帜来实现;您的完整命令将变为 thengit commit -a --verbose或者更简洁的git commit -av.
--verbose
git commit -a --verbose
git commit -av