Git Branch Descriptions

Here's a neat little feature of git that I just learnt about. It turns out that git branches can have associated descriptions, although they are local only. All you have to do to set one is to run the command git branch --edit-description which will open your editor, just like writing a commit message. To view the git branch's description you run the command git config branch.<name>.description, i.e. git config branch.main.description for the main branch. This can be shortened to git config branch.gb.description if you have a shell function gb defined as git branch --show-current; a handy little shortcut for commands like git push -u origin gb``, where you need a reference to the current branch rather than HEAD.

Last Updated: 2022-07-16

=> ..

Proxy Information
Original URL
gemini://gemini.rlamacraft.uk/techGuides/gitBranchDescriptions.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
277.309803 milliseconds
Gemini-to-HTML Time
0.204788 milliseconds

This content has been proxied by September (ba2dc).