Last active
April 13, 2020 09:00
-
-
Save 0x49D1/0c0dcb6241908b9b1943a194761e9b8b to your computer and use it in GitHub Desktop.
Script to update and publish (pull&push) all git repositories in sub-directories at once.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
eval $(keychain --eval id_github_rsa) # in case you use keychain to store keys. https://linux.die.net/man/1/keychain | |
find . -maxdepth 1 -type d -exec sh -c '(cd {} && echo $PWD && git pull && git push)' ';' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use it on windows (with linux subsystem WSL) - create
bat
file with content like: