Created
October 2, 2020 01:24
-
-
Save albertlieyingadrian/830b20235440f52131010c6f892a901e to your computer and use it in GitHub Desktop.
Update github master branch for all repos
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 | |
repos=$(ls -d */) | |
for repo in $repos; do | |
echo "Repo name -> $repo" | |
cd $repo | |
git stash | |
git checkout master | |
git pull origin master | |
cd .. | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment