feat: git pull shell

This commit is contained in:
hesam-init 2024-05-21 12:11:50 +03:30
parent 4696365f78
commit 7b39e65323
2 changed files with 14 additions and 7 deletions

14
pull.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
git_pull() {
git pull
}
git_pull_submodule() {
git submodule update --recursive --remote
git submodule foreach git checkout main
git submodule foreach git pull origin main
}
git_pull
git_pull_submodule

7
sub.sh
View file

@ -1,7 +0,0 @@
#!/bin/bash
git submodule update --recursive --remote
git submodule foreach git checkout main
git submodule foreach git pull origin main