Skip to content

Instantly share code, notes, and snippets.

Avatar

hd84335 haythamdouaihy

  • Beirut, Lebanon
View GitHub Profile
@haythamdouaihy
haythamdouaihy / git-rename-branch.sh
Last active Jun 11, 2018 — forked from lttlrck/gist:9628955
git rename local and remote branch
View git-rename-branch.sh
# 1. rename local branch
git branch -m new_branch
# 2. delete old branch from remote
git push origin :old_branch
# 3. push & create new branch to upstream
git push --set-upstream origin new_branch