try: fixing stuff
This commit is contained in:
parent
5c34ee9f23
commit
9d46dda2f4
1 changed files with 5 additions and 5 deletions
10
.zshrc
10
.zshrc
|
@ -354,6 +354,10 @@ __alias__() {
|
|||
alias gcm="git commit -m"
|
||||
alias gpu="git push --recurse-submodule=on-demand"
|
||||
gsu() {
|
||||
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")
|
||||
|
@ -370,14 +374,10 @@ __alias__() {
|
|||
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}"
|
||||
git add .
|
||||
git add . || echo "GIT ADD MISSFUNCTION"
|
||||
sleep 0.3
|
||||
if git commit -m " update: submodules"; then
|
||||
echo "${CYAN}Changes committed successfully.${NC}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue