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?
When I run git branch -a, it prints out like this, for ex:
branch_a
remotes/origin/branch_a
Few questions:
git push origin :branch_a
removes the remote branch from the origin repository, despite looking a bit hackish. If you want to remove branch_a, run git branch -d branch_a
.branch_a
indicates that you have a local branch called branch_a
.remotes/origin/branch_a
indicates that you have a remote called origin
, and you are tracking the branch_a
within the origin
remote. This isn't necessarily associated with your own branch_a
, but it probably is (git branch -a
doesn't say).remotes/origin/branch_a
is a remote tracking branch, it's required if your own branch_a
is set up to track the remote. If not, then deleting the origin
remote should remove it, or you might be able to simply git branch -d remotes/origin/branch_a
.