【发布时间】:2016-03-10 05:38:20
【问题描述】:
在我的电脑中有一个文件夹nextdoor,里面有一个子文件夹source。我所有的图像和代码都存在于source 文件夹中,但不知何故我无法将这个特定的子文件夹推送到远程存储库。
远程存储库:LINK
如果你去远程仓库,你可以看到source文件夹没有被添加。子文件夹也不为空。我尝试了很多方法,但不幸的是,我无法将这个特定的子文件夹向上推。
如果我这样做git status
git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
子文件夹总数:
bin include lib local pip-selfcheck.json README.md source static_cdn
既然我能够推送所有文件夹,但为什么source 没有上升?
在source 文件夹内:
crytography manage.py registration.txt templates
db.sqlite3 nextdoor static
.gitignore 文件:
# global gitignore for IDE, etc
# -- should still exclude project specific ignores in .gitignore
# system junk
.netrwhist
.Trash-1000
*.pyc
npm-debug.log
# IDEs
.idea
.env
# private files
id_rsa
*.key
谁能帮帮我?
【问题讨论】:
-
你确定你的源码目录中没有.gitignore文件吗?
-
奇怪...您的“源”目录不是符号链接或类似的东西?
-
我没有通过符号链接理解。我该如何检查?
-
我克隆了你的仓库;并尝试在源目录中添加一些文件;它也没有工作。我只是通过删除你的 .git 目录并重新初始化它(git init; git add --all)来让它工作......
-
你玩过子模块吗?您的“源”文件夹看起来像一个子模块,但缺少
.gitmodules。
标签: git github subdirectory