Skip to content

Instantly share code, notes, and snippets.


hd84335 haythamdouaihy

  • Beirut, Lebanon
View GitHub Profile
haythamdouaihy /
Last active Jun 11, 2018 — forked from lttlrck/gist:9628955
git rename local and remote branch
# 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