changed gsu function
This commit is contained in:
parent
5530994c56
commit
556e6b2f50
1 changed files with 4 additions and 4 deletions
8
.zshrc
8
.zshrc
|
@ -354,11 +354,11 @@ __alias__() {
|
|||
alias gcm="git commit -m"
|
||||
alias gpu="git push --recurse-submodule=on-demand"
|
||||
gsu() {
|
||||
echo "${YELLOW}${BOLD}| git submodule update --init --recursive |${NC}"
|
||||
echo "${CYAN}Updating submodules recursively with -> ${YELLOW}${BOLD}git submodule update --init --recursive${NC}"
|
||||
git submodule update --init --recursive &&
|
||||
echo "${CYAN}${BOLD}-- updated submodules recursively${NC}"
|
||||
echo "${CYAN}${BOLD}-- Updated submodules recursively --${NC}"
|
||||
|
||||
echo "${YELLOW}${BOLD}-- Checking submodule branches... --${NC}"
|
||||
echo "${CYAN}${BOLD}-- Checking submodule branches... --${NC}"
|
||||
git submodule foreach '
|
||||
branch=$(git symbolic-ref --short HEAD 2>/dev/null || echo "detached")
|
||||
if [ "$branch" = "detached" ]; then
|
||||
|
@ -370,7 +370,7 @@ __alias__() {
|
|||
fi
|
||||
'
|
||||
|
||||
echo "${YELLOW}${BOLD}git submodule foreach git pull --recurse-submodule${NC}"
|
||||
echo "${CYAN}Pulling down updates recursively with -> ${YELLOW}${BOLD}git submodule foreach git pull --recurse-submodule${NC}"
|
||||
git submodule foreach git pull --recurse-submodule &&
|
||||
echo "${GREEN}${BOLD}-- pulled down submodules recursively --${NC}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue