Created
August 5, 2015 15:13
-
-
Save Javlopez/3a9e7e478036bafa369a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config alias.rename 'git $1' | |
git config alias.rename '!git show $1' | |
git checkout $1 && git reset --hard remotes/origin/$1 &&git branch -m $1 $2 && git push origin :$1 && git checkout $2 && git push origin $2 | |
git config alias.rename '!git checkout $1 && git reset --hard remotes/origin/$1 &&git branch -m $1 $2 && git push origin :$1 && git checkout $2 && git push origin $2' | |
git config alias.rename '!git checkout $1 && git reset --hard remotes/origin/$1 && git branch -m $1 $2 && git push origin :$1 && git checkout $2 && git push origin $2' | |
it branch -m MX-RC/1.41.0 MX-RC/1.42.0 && git push origin :MX-RC/1.41.0 && git checkout MX-RC/1.42.0 && git push origin MX-RC/1.42.0 | |
git config alias.rename '!git checkout $1 && git reset --hard remotes/origin/$1 && git branch -m $1 $2 && git push origin :$1' | |
git config alias.rename '!git checkout $0 && git reset \--hard remotes\/origin\/$0' | |
git config alias.rename '!git branch -m $1 $2 && git push origin :$1 && git checkout $2 && git push origin $2' | |
git config alias.rename '!git branch -m $1 $2'; | |
git checkout -b demo1 && git push origin demo1 | |
git checkout -b test13 && git push origin test13 | |
git checkout -b test14 && git push origin test14 | |
git checkout -b test15 && git push origin test15 | |
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 | |
$ git branch new-branch-name origin/old-branch-name | |
$ git push origin new-branch-name | |
$ git push origin :old-branch-name | |
git config alias.rename '!git branch -m $0 $1 && git push origin :$0 && git checkout $1 && git push origin $1' | |
git config alias.rename '!git branch -m $1 $2 && git push origin :$1 && git checkout $2 && git push origin $2' | |
git config alias.rename '!git checkout $0 && git reset --hard remotes/origin/$0 && git branch -m $0 $1 && git push origin :$0 && git checkout $1 && git push origin $1' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment