Skip to content

Instantly share code, notes, and snippets.

View kahraman-mustafa's full-sized avatar

Mustafa Kahraman kahraman-mustafa

  • Bursa, Turkey
View GitHub Profile
@kahraman-mustafa
kahraman-mustafa / gist:71d695f8c89f6428df24a090608a67e3
Created March 2, 2021 16:14 — forked from stuart11n/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