문제

I set just a simple description for my local branch and now I'd like to see it. How one can see description for a branch set by issuing git branch --edit-description?

도움이 되었습니까?

해결책

The description is used for request-pull (as stated in the man-page). This has already been discussed here.

다른 팁

It is possible to show the branch descriptions by interrogating the repos config settings, which is where the description is stored.

I have two aliases defined, one shows all branches that have descriptions, and the second shows the description of the current HEAD branch

    brshow = config --get-regexp 'branch.*.description'
    brshow1 = !git config --get "branch.$(git rev-parse --abbrev-ref HEAD).description"
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top