1
eth2net 2012 年 4 月 1 日 via iPhone
pathogen+git submodule么?
cd到那些目录下再git status一下就知道了,使用插件后产生的doc/tags文件就是untracked content,烦的话写.gitignore吧 |
2
flycarl 2012 年 4 月 13 日
git config --global core.excludesfile '~/.cvsignore'
echo tags >> ~/.cvsignore pythogen's author advise the above two command |
3
foursking 2013 年 6 月 9 日
hi 我最近也遇到了这个问题 请问你找到了解决方案了吗
|
4
imlz 2014 年 3 月 20 日
@foursking 我是这样解决的,在bashrc里加入如下代码
# gitsubupdate function gitsubupdate() { fn=`git commit | grep 'modified:' | sed -e 's/.*: *\(.*\) .* .*/\1/g'` for name in $fn do rm -rf $name rm -rf './git/submodule/'$name git submodule init git submodule update done } 之后source .bashrc后在git的根目录运行gitsubupdate即可 |
5
imlz 2014 年 5 月 25 日
# gitsubupdate
function gitsubupdate() { git commit | grep 'modified' | grep 'untracked' | awk '{print "rm -fr " $2 "&& rm -fr ./git/submodule/"$2}' | sh git submodule init git submodule update } 之前awk不熟练,没用,现在看来还是超级方便的哈 |