I need an export of all changes/commits/change-log for a repo (and its branches).

... preferably in an easy to follow format.

3 answers

You do realize that you've basically described exactly what a cloned Git repository is: an export of all changes/commits/change-log of all branches in an entire repo. Since you are asking the question, I have to assume that you consider the Git repository format to NOT be "easy to follow", so maybe you should clarify what you want. Pretty much any other format is going to be overly complex, or will be missing large portions of the data you want.

Seth, you are correct about what a [cloned] Git repo is. Let me see if I can rephrase my question... Is there an automated way to get a line by line per commit export of changes in a repository into something like a text file that needs to be read by a non-professional. Example: Commit: 70abcde. By: EM. Date. XX/XX/XXXX. File/templates/example.xml +++ ............ --- ............ Commit: 90aabbcc. By: AB. Date. XX/XX/XXXX. File/settings/local.sh +++ ............ --- ............ I realize again that it seems that all I'm asking is what is Git, but I really am not. For example, in a dispute or for managerial CYA I need this info in a format that is 'readable' without just telling someone to go to the repo and look at it themselves. Thanks!

It looks like this git-log command should do what you want.

git log -p --all

This will be an overwhelming amount of data if you've got a repository of decent size, so check out the git log documentation for other filtering and formatting options. You do need "-p" to get the diff included in the output.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

670 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you