mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
Make git a bit more usable
This commit is contained in:
parent
52478d9c09
commit
53d1f63741
28
mk/linux/git_update.sh
Executable file
28
mk/linux/git_update.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
LANG=en_US.utf-8
|
||||
|
||||
cd "$(dirname $(readlink -f $0))"
|
||||
|
||||
echo STAGE 1/3 - GIT PULL
|
||||
echo
|
||||
echo Entering ../..
|
||||
git pull
|
||||
echo
|
||||
git submodule foreach 'git pull; echo'
|
||||
|
||||
echo
|
||||
echo
|
||||
echo STAGE 2/3 - GIT BRANCH
|
||||
echo
|
||||
echo Entering ../..
|
||||
git branch
|
||||
echo
|
||||
git submodule foreach 'git branch; echo'
|
||||
|
||||
echo
|
||||
echo STAGE 3/3 - GIT STATUS
|
||||
echo
|
||||
echo Entering ../..
|
||||
git status
|
||||
echo
|
||||
git submodule foreach 'git status; echo'
|
@ -12,7 +12,7 @@ usage() {
|
||||
|
||||
case $1 in
|
||||
|
||||
pull )
|
||||
pull|status|branch )
|
||||
echo '==> Running "git '"$1"'" on main repository...'
|
||||
cd $(dirname $0)
|
||||
git $1
|
||||
|
Loading…
x
Reference in New Issue
Block a user