When I run git branch -a, it prints out like this, for ex:
branch_a
remotes/origin/branch_a
Few questions:
- What does branch_a indicate?
- What does remotes/origin/branch_a indicate?
- How do I delete remotes/origin/branch_a?
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.
branch_aindicates that you have a local branch calledbranch_a.remotes/origin/branch_aindicates that you have a remote calledorigin, and you are tracking thebranch_awithin theoriginremote. This isn’t necessarily associated with your ownbranch_a, but it probably is (git branch -adoesn’t say).remotes/origin/branch_ais a remote tracking branch, it’s required if your ownbranch_ais set up to track the remote. If not, then deleting theoriginremote should remove it, or you might be able to simplygit branch -d remotes/origin/branch_a.