[GIT] Perform Git update on subdirectories
#!/bin/sh
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && if git status | grep -q \"nothing to commit\"
then
git pull
else
git stash && git pull && git stash pop
fi" \;
#!/bin/sh
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && if git status | grep -q \"nothing to commit\"
then
git pull
else
git stash && git pull && git stash pop
fi" \;
Comments
0 B
|👍
/👎