使用git管理更改日志的好方法? [英] Good ways to manage a changelog using git?

查看:139
本文介绍了使用git管理更改日志的好方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在一直在使用Git,最近我开始使用它来标记我的发行版,以便我可以更轻松地跟踪更改并能够查看每个客户端正在运行的版本(不幸的是,代码目前要求每个客户端都有自己的PHP站点副本;我正在改变这一点,但速度很慢)。

I've been using Git for a while now, and I recently started using it to tag my releases so that I could more easily keep track of changes and be able to see which version each of our clients are running (unfortunately the code currently mandates that each client have their own copy of the PHP site; I'm changing this, but it's slow-going).

无论如何,我们是开始建立一些动力,我认为能够向人们展示自上次发布以来发生了什么变化真的很不错。问题是,我没有保持更新日志,因为我不知道如何去做。在这个特定的时间,我可以通过日志并手动创建一个,但这会很快疲惫。

In any case, we're starting to build some momentum, I thought it would be really good to be able to show people what has changed since the last release. Problem is, I haven't been maintaining a changelog because I don't have a good idea of how to go about it. For this particular time, I can run through the log and manually create one, but that will get tiring very quickly.

我试着用google搜索git changelog和git manage更改日志,但我没有发现任何真正讨论代码更改的工作流程以及与更改日志相吻合的内容。我们目前正在遵循 Rein Henrichs的发展工作流程,我会喜欢与之相关的东西。

I tried googling "git changelog" and "git manage changelog" but I didn't find anything that really talked about the workflow of code changes and how that coincides with the changelog. We're currently following Rein Henrichs' development workflow and I would love something that went along with that.

是否有我缺少的标准方法,还是这是一个每个人都在做自己的东西?

Is there a standard approach that I am missing, or is this an area where everybody does their own thing?

非常感谢您的评论/回答!

Thanks very much for your comments/answers!

推荐答案

<这是大约3 - 4年前,但为了未来的搜索者,现在可以生成华丽的日志:

This was about 3-4 years ago, but for the sake of future searchers, it's now possible to generate gorgeous logs with:

git log --oneline --decorate

或者,如果你想让它更漂亮对于终端):

Or, if you want it even prettier (with color for terminal):

git log --oneline --decorate --color

将输出配置到ChangeLog是我目前在所有项目中使用的,它简直太神奇了。

Piping that output to ChangeLog is what I currently use in all my projects, it's simply amazing.

这篇关于使用git管理更改日志的好方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆