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

java - Checkbox item adds to spinner -

C# MVC AngularJS -

How to debug "expected android.widget.TextView but found java.lang.string" in Android? -