git - Switch Branches of Subdirectories -


from parent directory want switch branches of subdirectories. there command this?

parentdirectory - sub1 - sub2 - sub3  cd sub1 git checkout f1 cd .. cd sub2 git checkout f1 cd .. cd sub3 git checkout f1 cd .. 

if you're using bash, top level directory

for d in */ ;     git checkout "$d" done 

if you're using windows cmd:

for /d %g in (*) git checkout %g 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -