I have the following branches:
* master
newbranch
remotes/origin/HEAD -> origin/master
remotes/origin/api-notes
remotes/origin/event-creation-validation
remotes/origin/master
remotes/origin/organizerlocation-bug-demo
remotes/origin/ticket-180
-
Is the current branch master different from origin/master or are these branches working together?
-
How can I detect the last changes in the different branches and how can I delete them to cleanup?
Thank you very much.
1/ Is the current branch master different from origin/master or are these branches working together?
It is different (even if it started from
origin/masterafter the clone), and is not trackingorigin/master(see “how do I change the remote a git branch is tracking?“).2/ how can I delete them to cleanup
You can delete a branch from the remotes namespace with:
(More at “How do you Remove an Invalid Remote Branch Reference from Git?“)
You can git diff or git log two branches to see the commits you don’t have:
See “Git diff .. ? What’s the difference between having
..and no dots?“.See also “Git: Compare All Local Commits to Remote Repo Version“.