re: Git hacks you should know about VIEW POST

FULL DISCUSSION
 

Hey, thanks for sharing.

Couple of notes:

git branch -m relaese release

is a bit confusing i'd suggest changing to:

Rename branch locally

git branch -m old_branch new_branch

Delete the old remote branch

git push origin :old_branch

Push the new branch, set local branch to track the new remote

git push --set-upstream origin new_branch
 

Thanks for describing in detailed way 😁

 
 

I always forgot the command to push a delete branch on remote.

code of conduct - report abuse