If one has previously entered a description for some branch FOO
, by running
% git branch --edit-description FOO
...is there a way to view this description (other than running this same command again, i.e. other than re-editing the branch description)?
BTW, I've tried a couple of things, such as:
% git branch -av
FOO ca2fff9 (mumble)
* master ca2fff9 (mumble)
% git show-branch FOO
[FOO] (mumble)
...but no dice.
To view your remote branches, simply pass the -r flag to the git branch command. You can inspect remote branches with the usual git checkout and git log commands.
Branch description, can be edited with git branch --edit-description . Branch description is automatically added in the format-patch cover letter or request-pull summary.
You can see the description for all branches with:
git config --get-regexp branch.*.description
git config
is what a command like git request-pull
does to get the description of a branch:
C:\Users\VonC\prog\git\git>grep -nRHI description *|grep pull
git-request-pull.sh:45: ! git config "branch.$branch_name.description" >/dev/null
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With