Skip to content

Instantly share code, notes, and snippets.

@ZeroDragon
Last active February 17, 2022 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZeroDragon/41f10c46a4bab9b438b954b900ff5611 to your computer and use it in GitHub Desktop.
Save ZeroDragon/41f10c46a4bab9b438b954b900ff5611 to your computer and use it in GitHub Desktop.
Get latest changes since last release

First we need to clone "Bare" the repository to be able to read the commits

git clone --bare url/to.git

IMPORTANT, you need to add this to your config otherwise, git fetch wont work

git config remote.origin.fetch 'refs/heads/*:refs/heads/*'

Then before we start fetching the results, we need to fetch the new changes

git fetch

Finaly we just need this command

git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline > new-in-this-release.log

It will output the results to ./new-in-this-release.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment