How to make gitk show only local branches? Or even better – can I hide remote branches that do not have corresponding local branches?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After some experimenting I have found a solution. The following command works:
It shows only those remote branches that have corresponding local branches. It is important to use
echo $(git branch)since it forcesbranchto return raw list of branches instead of formatted output such as the following: