Skip to content

Instantly share code, notes, and snippets.

@ZeroDragon
Last active Feb 17, 2022
Embed
What would you like to do?
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