开发者

How to write a .log file about commits

开发者 https://www.devze.com 2023-04-01 12:26 出处:网络
I\'m just starting to use git,开发者_StackOverflow中文版 and hosting the repository in assembla. I would like to keep track of the commits I make in a .log file. Can anybody point me in the right dire

I'm just starting to use git,开发者_StackOverflow中文版 and hosting the repository in assembla. I would like to keep track of the commits I make in a .log file. Can anybody point me in the right direction for doing this? I've been googling for a while but haven't found anything that can get me started.

Thanks!


You can simply use git log and redirect that to a file.


git log --pretty=format:'%h : %s' --graph > commit_log.log

This would give you summary with the graph of commits.

0

精彩评论

暂无评论...
验证码 换一张
取 消