Last active
September 7, 2017 22:15
Revisions
-
olivierperez renamed this gist
Sep 7, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
olivierperez revised this gist
Sep 7, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -8,10 +8,10 @@ NC='\033[0m' # No Color IFS=$'\n' for folder in `find . -maxdepth 1 -type d ! -name .idea* ! -name gitall ! -path . | sort` do cd $folder if [ -d .git ] then echo -e "${GREEN}$folder${NC}" echo -e "${GREEN}*****************************${NC}" echo -e "On branch ${BROWN}`git rev-parse --abbrev-ref HEAD`${NC}" git $@ -
olivierperez created this gist
Sep 7, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ git-r pull git-r fetch --all --prune git-r branch git-r checkout develop This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ #!/bin/bash GREEN='\033[0;32m' BROWN='\033[0;33m' DARK_GRAY='\033[1;30m' NC='\033[0m' # No Color IFS=$'\n' for folder in `find . -maxdepth 1 -type d ! -name .idea* ! -name gitall ! -path . | sort` do echo -e "${GREEN}$folder${NC}" cd $folder if [ -d .git ] then echo -e "${GREEN}*****************************${NC}" echo -e "On branch ${BROWN}`git rev-parse --abbrev-ref HEAD`${NC}" git $@ echo "" else echo -e "${DARK_GRAY}$folder${NC}" echo -e "${DARK_GRAY}*****************************${NC}" echo -e "${DARK_GRAY}Not a git folder${NC}" echo "" fi cd .. done