fix: maybe finally?
This commit is contained in:
parent
0618f8ec4f
commit
b149b2d733
1 changed files with 8 additions and 8 deletions
16
.zshrc
16
.zshrc
|
@ -354,14 +354,6 @@ __alias__() {
|
|||
alias gcm="git commit -m"
|
||||
alias gpu="git push --recurse-submodule=on-demand"
|
||||
gsu() {
|
||||
echo "${YELLOW}${BOLD}| git submodule foreach git pull --recurse-submodule |${NC}"
|
||||
git submodule foreach git pull --recurse-submodule &&
|
||||
echo "${CYAN}-- pulled down submodules recursively${NC}"
|
||||
|
||||
echo "${YELLOW}| git submodule update --init --recursive |${NC}"
|
||||
git submodule update --init --recursive &&
|
||||
echo "${CYAN}-- updated submodules recursively${NC}"
|
||||
|
||||
echo "${YELLOW}-- Checking submodule branches... --${NC}"
|
||||
git submodule foreach '
|
||||
branch=$(git symbolic-ref --short HEAD 2>/dev/null || echo "detached")
|
||||
|
@ -374,6 +366,14 @@ __alias__() {
|
|||
fi
|
||||
'
|
||||
|
||||
echo "${YELLOW}${BOLD}| git submodule foreach git pull --recurse-submodule |${NC}"
|
||||
git submodule foreach git pull --recurse-submodule &&
|
||||
echo "${CYAN}-- pulled down submodules recursively${NC}"
|
||||
|
||||
echo "${YELLOW}| git submodule update --init --recursive |${NC}"
|
||||
git submodule update --init --recursive &&
|
||||
echo "${CYAN}-- updated submodules recursively${NC}"
|
||||
|
||||
gUpdateModules() {
|
||||
if git diff --quiet .; then
|
||||
echo "${YELLOW}Staging changes...${NC}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue