-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
63 additions
and
298 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
#!/bin/bash | ||
# | ||
# (__) gg | ||
# (oo) | ||
# /------\/ Distributed under | ||
# / | || the GNU GPL v3 License | ||
# * /\---/\ | ||
# ~~ ~~ http://www.gnu.org | ||
# | ||
# | ||
# 2014-08-02 | ||
# | ||
# Author: [email protected] | ||
installPath=/usr/local/bin/gg | ||
source $installPath/gg-functions | ||
testClear | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
#!/bin/bash | ||
# | ||
# (__) gg | ||
# (oo) | ||
# /------\/ Distributed under | ||
# / | || the GNU GPL v3 License | ||
# * /\---/\ | ||
# ~~ ~~ http://www.gnu.org | ||
# | ||
# | ||
# 2014-08-02 | ||
# | ||
# Author: [email protected] | ||
installPath=/usr/local/bin/gg | ||
source $installPath/gg-functions | ||
testClear | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
#!/bin/bash | ||
# | ||
# (__) gg | ||
# (oo) | ||
# /------\/ Distributed under | ||
# / | || the GNU GPL v3 License | ||
# * /\---/\ | ||
# ~~ ~~ http://www.gnu.org | ||
# | ||
# | ||
# 2014-08-02 | ||
# | ||
# Author: [email protected] | ||
installPath=/usr/local/bin/gg | ||
source $installPath/gg-functions | ||
testClear | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
#!/bin/bash | ||
# | ||
# (__) gg | ||
# (oo) | ||
# /------\/ Distributed under | ||
# / | || the GNU GPL v3 License | ||
# * /\---/\ | ||
# ~~ ~~ http://www.gnu.org | ||
# | ||
# | ||
# 2014-08-02 | ||
# | ||
# Author: [email protected] | ||
installPath=/usr/local/bin/gg | ||
source $installPath/gg-functions | ||
testClear | ||
|
@@ -24,10 +12,10 @@ if [[ $currentBranchType != 'feature' ]]; then | |
fi | ||
|
||
get_father | ||
if [[ -z `git branch | grep -v $currentBranch | grep $father` ]]; then | ||
if [[ -z "$(git branch | grep -v $currentBranch | grep $father)" ]]; then | ||
get_develop | ||
echo "do not know which branch to merge into, please input[default is $develop]:" | ||
git branch | ||
git --no-pagger branch | ||
read temp | ||
if [[ -z $temp ]]; then | ||
father=$develop | ||
|
@@ -48,4 +36,4 @@ git checkout "$father" | |
git merge --no-ff "$currentBranch" -m "Merge feature branch $currentBranch into $father"\ | ||
&& echo "press Enter to delete $currentBranch branch"\ | ||
&& echo " press Ctrl+c not to delete it"\ | ||
&& read temp && git branch -d "$currentBranch" | ||
&& read temp && git branch -d "$currentBranch" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
#!/bin/bash | ||
# | ||
# (__) gg | ||
# (oo) | ||
# /------\/ Distributed under | ||
# / | || the GNU GPL v3 License | ||
# * /\---/\ | ||
# ~~ ~~ http://www.gnu.org | ||
# | ||
# | ||
# 2014-08-02 | ||
# | ||
# Author: [email protected] | ||
installPath=/usr/local/bin/gg | ||
source $installPath/gg-functions | ||
testClear | ||
|
||
|
||
get_currentBranch | ||
get_currentBranchType | ||
if [[ $currentBranchType == 'master' && $currentBranchType == 'release' ]]; then | ||
|
@@ -42,4 +29,4 @@ printf "Do you what to open a new feature branch like this?\n" | |
gggttt;echo "git checkout -b \"$feature/$1$postfix\"" | ||
echo "press ENTER to continue, press Ctrl+c to ESCAPE" | ||
read temp | ||
git checkout -b "$feature/$1$postfix" | ||
git checkout -b "$feature/$1$postfix" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
#!/bin/bash | ||
# | ||
# (__) gg | ||
# (oo) | ||
# /------\/ Distributed under | ||
# / | || the GNU GPL v3 License | ||
# * /\---/\ | ||
# ~~ ~~ http://www.gnu.org | ||
# | ||
# | ||
# 2014-08-02 | ||
# | ||
# Author: [email protected] | ||
installPath=/usr/local/bin/gg | ||
source $installPath/gg-functions | ||
testClear | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
#!/bin/bash | ||
# | ||
# (__) gg | ||
# (oo) | ||
# /------\/ Distributed under | ||
# / | || the GNU GPL v3 License | ||
# * /\---/\ | ||
# ~~ ~~ http://www.gnu.org | ||
# | ||
# | ||
# 2014-08-02 | ||
# | ||
# Author: [email protected] | ||
installPath=/usr/local/bin/gg | ||
source $installPath/gg-functions | ||
testClear | ||
|
@@ -58,4 +46,4 @@ git merge --no-ff "$currentBranch" -m "Merge hotfix branch into $develop"\ | |
&& echo "press Enter to delete branch $currentBranch"\ | ||
&& echo "press Ctrl+c to ESCAPE"\ | ||
&& read temp &&git branch -d "$currentBranch" | ||
fi | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
#!/bin/bash | ||
# | ||
# (__) gg | ||
# (oo) | ||
# /------\/ Distributed under | ||
# / | || the GNU GPL v3 License | ||
# * /\---/\ | ||
# ~~ ~~ http://www.gnu.org | ||
# | ||
# | ||
# 2014-08-02 | ||
# | ||
# Author: [email protected] | ||
installPath=/usr/local/bin/gg | ||
source $installPath/gg-functions | ||
testClear | ||
|
@@ -25,7 +13,7 @@ fi | |
if [[ "$#" != "1" ]]; then | ||
echo "your are in branch $currentBranch, Please input the hotfix number" | ||
printf "Current tag names are\n" | ||
git tag -l | ||
git --no-pager tag | ||
exit 1 | ||
fi | ||
|
||
|
@@ -46,4 +34,4 @@ else | |
read temp | ||
git checkout -b "$hotfix-$1" | ||
git commit --allow-empty -m "Start hotfix version $1" | ||
fi | ||
fi |
Oops, something went wrong.