开发者

How to write a .log file about commits

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜