升级到Ubuntu 16.04.1后,git push --tags
正在尝试推送被忽略的子目录。
目录结构已演变为:
top/.git
subdir1/.git
subdir2/.git
与.gitignore
:
subdir1/**
subdir2/**
目前正在运行git 2.7.4(我相信我之前运行的是git 2.5.0)
推送到主仓库的工作原理如下:
pushd subdir1; git push --tags; popd
pushd subdir2; git push --tags; popd
echo "Now pushing top"
git push --tags
在升级之前,上面的推送说明工作正常。升级后,该过程现在执行以下操作:
Now pushing subdir1
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 312 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
Now pushing subdir2
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 312 bytes | 0 bytes/s, done.
Total 3 (delta 2), reused 0 (delta 0)
Now pushing top
Pushing submodule 'subdir1'
Pushing submodule 'subdir2'
Pushing submodule 'subdir1'
Pushing submodule 'subdir2'
Pushing submodule 'subdir1'
Pushing submodule 'subdir2'
The following submodule paths contain changes that can
not be found on any remote:
subdir1
subdir2
经过广泛的谷歌搜索后,我确实尝试了这个:
git clean -d -i
并在列表中找到了subdir1和subdir2。正在运行git clean -d -f
删除了这些目录。
然而,这并没有解决根本问题。关于下一步该尝试的任何建议?
供参考:
.gitmodules
为空.git/modules
不存在git ls-files
未在列表我接下来可以尝试什么?