3 ms·
A few more: Change the comment character. This is useful when you want to include a hash in your commit message (e.g. for automatically linking to JIRA tickets
by prima-facie 3y ago
A few more:
Change the comment character. This is useful when you want to include a hash in your commit message (e.g. for automatically linking to JIRA tickets).
[core]
commentChar = ";"
When starting a new branch/ticket you can create an empty commit where you write a detailed subject and description.
[alias]
newtask = commit --allow-empty
Create a zip archive of the current files.
[alias]
zip = archive -o latest.zip HEAD
Switch between the last two active branches with:
git checkout -
Use short log lines:
[format]
pretty = format:%C(yellow)%h %Cblue%>(12)%ad %Cgreen%<(7)%aN%Cred%d %Creset%s
Some delta tweaks:
[delta]
features = decorations # line numbers
navigate = true # use n and N to move between diff sections
And finally:
[alias]
praise = blame