Re: [问题] 进入全部的子目录做git pull

楼主: Bellkna (柔弱气质伪少女)   2014-10-08 19:00:52
※ 引述《filiaslayers (司马云)》之铭言:
: 我现在又遇到另一个问题
: for file in *
: do
: cd $file;ls
: done
: 会cd进子目录做ls之后,又cd一次
: 举例来说:
: a
: top-b
: c
: 会cd进a目录执行ls,然后又会再执行cd a
: 结果就是找不到目录,这个该怎么避免呢?
我是把 repo 弄成 submodule 然后
在 top 下执行
git submodule foreach
作者: filiaslayers (司马云)   2014-10-08 19:07:00
原来有submodule这种东西,我试试看

Links booklink

Contact Us: admin [ a t ] ucptt.com