Last active
April 19, 2022 19:18
-
-
Save elit69/4dea1014f94f544dd159b43a4a302002 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
#1 sync commit branchA | |
#2 sync commit branchB | |
#3 merge branchA to branchB | |
#$ m branchA branchB KHPROJ-1010 'update something' | |
m() { git add . && git commit -m "$3 $4" && git pull origin $1 && git push origin $1 && git checkout $2 && git pull origin $2 && git pull origin $1 && git push origin $2 && git checkout $1; } | |
#1 sync commit branchA | |
#$ gp branchA KHPROJ-1010 'update something' | |
gp() { git add . && git commit -m "$2 $3" && git pull origin $1 && git push origin $1; } | |
#1 sync commit branchA and build | |
#$ gpb branchA KHPROJ-1010 'update something' | |
gpb() { git add . && git commit -m "$2 $3" && git pull origin $1 && git push origin $1 && ./build.sh $1; } | |
#1 sync commit branchA | |
#2 sync tag branchA | |
#$ gpt master KHPROJ-1010 'update something' 1.5.7 | |
gpt() { git add . && git commit -m "$2 $3" && git pull origin $1 && git push origin $1 && git pull origin --tags && git tag $4 && git push origin --tags; } | |
#1 fetch and switch to branchA | |
#$ gfc branchA | |
gfc() { git fetch origin $1 && git checkout $1; } | |
#1 switch to and pull commit branchA | |
#$ gopu branchA | |
gopu() { git checkout $1 && git pull origin $1; } | |
#1 pull commit branchA | |
#$ gpu branchA | |
gpu() { git pull origin $1 && git pull origin $1 --tags; } | |
#1 sync tag branch master | |
#$ gt 2020-10-01 | |
gt() { git pull origin --tags && git tag $1 && git push origin --tags; } | |
#1 sync commit branchA | |
#2 sync commit branch develop | |
#3 merge branchA to develop | |
#4 build and deploy develop | |
#$ mdb branchA KHPROJ-1010 'update something' | |
mdb() { git add . && git commit -m "$2 $3" && git pull origin $1 && git push origin $1 && git checkout develop && git pull origin develop && git pull origin $1 && git push origin develop && git checkout $1 && ./build.sh develop; } | |
#1 sync commit branchA | |
#2 sync commit branch develop | |
#3 merge branchA to develop | |
#$ md branchA KHPROJ-1010 'update something' | |
md() { git add . && git commit -m "$2 $3" && git pull origin $1 && git push origin $1 && git checkout develop && git pull origin develop && git pull origin $1 && git push origin develop && git checkout $1; } | |
#1 sync commit branchA | |
#2 sync commit branch master | |
#3 merge branchA to master | |
#4 build and deploy master | |
#$ mmb branchA KHPROJ-1010 'update something' | |
mmb() { git add . && git commit -m "$2 $3" && git pull origin $1 && git push origin $1 && git checkout master && git pull origin master && git pull origin $1 && git push origin master && git checkout $1 && ./build.sh master; } | |
#1 sync commit branchA | |
#2 sync commit branch master | |
#3 merge branchA to master | |
#$ mm branchA KHPROJ-1010 'update something' | |
mm() { git add . && git commit -m "$2 $3" && git pull origin $1 && git push origin $1 && git checkout master && git pull origin master && git pull origin $1 && git push origin master && git checkout $1; } | |
alias ll='ls -alF' | |
alias g='git' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment