zilu3169
12/22/2017 - 10:47 AM

カレントディレクトリ配下をすべてmasterブランチでチェクアウトする

カレントディレクトリ配下をすべてmasterブランチでチェクアウトする

ls -l | awk '{print $9}' | xargs -I[] sh -c 'cd ./[];git fetch -p;git branch -D master;git checkout master;git pull;cd ../'