Export the history of the activity in your Git repo:
git log --since="1 day ago" -p > "../Lab Book.txt"
git diff > diff.txt
git diff --color > diff.txt
date_iso=$(date +'%Y-%m-%d %H.%M.%S') && git diff > "$date_iso diff.txt"
date_iso=$(date +'%Y-%m-%d %H.%M.%S') && git diff -- . ':(exclude)file_1.txt' ':(exclude)folder_1' > "$date_iso diff.txt"
The following command will draw and export the ‘tree’ of all the branches in your repo and the commits that have been made:
git log --graph --full-history --all --pretty=format:"%x09%d%x20%s" > "Git Tree.txt"
This can be used as a base to create ‘version history’ charts such as the one below:
* v2 New features released
|\
| * v1.1 Export functionality added
|/
* v1 Initial release
|\
| * v0.5 Added Build.sh
| * v0.4 - Added .gitignore
| | - Moved Latex code to new folder
| | - Changed filenames
| * v0.3 Python code added
| * v0.2 Small addition to text
| * v0.1 Latex document created
|/
* v0 Initial commit