2

I am new to Git and I am wondering if I need to create a changelog file manually, or if Git keeps track of the changes (I'm using GitHub).

William
  • 427
  • 1
  • 9
  • 22

2 Answers2

2

Git keeps track of the whole history, yes, that’s the purpose of it. You can always access the commit log using git log, or see it for example on GitHub when you have pushed your repository there.

However, those logs will only show you the commits you made, usually being very developer-centric and specific to the implementation. So for public changelogs, you might still want to maintain a user-friendly list of changes.

poke
  • 369,085
  • 72
  • 557
  • 602
1

The idea is for a version control to provide a good tracking of the changes through the revisions and their commit messages.

That being said, you can also generate an extra changelog file from your commits.
See for instance "Generate your changelogs with Git log".

git log v2.1.0...v2.1.1 --pretty=format:'<li> <a href="http://github.com/jerel/<project>/commit/%H">view commit &bull;</a> %s</li> ' --reverse | grep "#changelog"

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250