Skip to content

Instantly share code, notes, and snippets.

View haythamdouaihy's full-sized avatar

hd84335 haythamdouaihy

  • Beirut, Lebanon
View GitHub Profile
@haythamdouaihy
haythamdouaihy / git-rename-branch.sh
Last active June 11, 2018 15:05 — 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