How to view branch descriptions (without editing them)?

If you previously entered a description for any FOO branch, by running

 % git branch --edit-description FOO 

... is there a way to view this description (with the exception of re-executing the same command, i.e., except re-editing the branch description)?


By the way, I tried a couple of things, for example:

 % git branch -av FOO ca2fff9 (mumble) * master ca2fff9 (mumble) % git show-branch FOO [FOO] (mumble) 

... but not bones.

+4
source share
1 answer

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 a description of the 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 
+4
source

Source: https://habr.com/ru/post/1499664/


All Articles