Add function to pull all git repos
This commit is contained in:
parent
df240d09ae
commit
fba21c4f5b
4
roles/config/files/.config/fish/functions/megapull.fish
Normal file
4
roles/config/files/.config/fish/functions/megapull.fish
Normal file
@ -0,0 +1,4 @@
|
||||
# Pull all git repos within the current directory
|
||||
function megapull
|
||||
find . -type d -exec sh -c 'if [ -d "$0/.git" ]; then git -C "$0" pull; fi' {} \;
|
||||
end
|
Loading…
Reference in New Issue
Block a user