Skip to content

Instantly share code, notes, and snippets.

View layamba25's full-sized avatar

Security Engineer | DevOps | Cloud (AWS, AZURE, GCP) | Automation layamba25

View GitHub Profile
@layamba25
layamba25 / gist:f77742de2b0bbff53d3e1f1025d0f1bc
Created March 8, 2019 17:38 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
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