Skip to content

Instantly share code, notes, and snippets.

View brev's full-sized avatar
🎯
Focusing

Brev Patterson brev

🎯
Focusing
View GitHub Profile
@brev
brev / git-branch-rename.sh
Last active August 29, 2015 14:05
Git branching with branch renaming
# checkout remote branch and rename locally
git checkout --track -b them-master them/master
# push to renamed branch
git push them them-master:master
# pull from renamed branch
git pull them master:them-master