I created a new branch called table
in Git, but I didn't run git fetch origin
before creating it.
It turns out someone created a branch called table
before I did.
How can I delete the one I created and checkout theirs?
I created a new branch called table
in Git, but I didn't run git fetch origin
before creating it.
It turns out someone created a branch called table
before I did.
How can I delete the one I created and checkout theirs?
Do the following:
$ git branch -D table
$ git checkout -b table origin/table
The -m flag will allow you to rename a branch.
git branch -m oldname newname