Check out my first novel, midnight's simulacra!

Git: Difference between revisions

From dankwiki
Line 56: Line 56:
* <tt>git tag -d TAG</tt>
* <tt>git tag -d TAG</tt>
* <tt>git push --delete origin TAG</tt>
* <tt>git push --delete origin TAG</tt>
===Rename local+remote branch===
Remote branches cannot be renamed in a single step. Instead,
* Check out the remote branch if it is not checked out
* Rename the local branch with <tt>git branch -m newname</tt>
* Delete the remote branch with <tt>git push origin ––delete oldname</tt>
* Re-add and reset the remote branch with <tt>git push origin –u newname</tt>


==Links==
==Links==