Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block layamba25

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
layamba25 / gist:f77742de2b0bbff53d3e1f1025d0f1bc
Created Mar 8, 2019 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
View gist:f77742de2b0bbff53d3e1f1025d0f1bc
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
You can’t perform that action at this time.