
1 eth2net 2012-04-01 01:16:07 +08:00 via iPhone pathogen+git submodule么? cd到那些目录下再git status一下就知道了,使用插件后产生的doc/tags文件就是untracked content,烦的话写.gitignore吧 |
2 flycarl 2012-04-13 10:45:02 +08:00 git config --global core.excludesfile '~/.cvsignore' echo tags >> ~/.cvsignore pythogen's author advise the above two command |
3 foursking 2013-06-09 10:26:13 +08:00 hi 我最近也遇到了这个问题 请问你找到了解决方案了吗 |
4 imlz 2014-03-20 14:41:30 +08:00 @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-05-25 10:59:17 +08:00 # 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不熟练,没用,现在看来还是超级方便的哈 |