我想添加名称中包含@符号的文件夹。由于程序限制,我无法重命名它们,但我也无法将它们添加到我的github存储库中。
文件夹名称为:
zoteroOpenOfficeIntegration@zotero.org
zoteroWinWordIntegration@zotero.org
git错误消息是:
G:\PortableApps\PortableApps\GitPortable\Data\home\github\PortableApps>git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# Zotero Standalone/
nothing added to commit but untracked files present (use "git add" to track)
G:\PortableApps\PortableApps\GitPortable\Data\home\github\PortableApps>git add "
Zotero Standalone"
fatal: Not a git repository: Zotero Standalone/ZoteroStandalonePortable/App/Zote
ro Standalone/extensions/zoteroWinWordIntegration@zotero.org/../../.git/modules/
modules/zotero-word-for-windows-integration
是否有任何解决方案可以将带有@符号的文件夹中的文件添加到git存储库?
答案 0 :(得分:2)
您看到的错误与文件夹中的@
字符无关,而是与您尝试将存储库添加到另一个存储库的事实有关。相反,您应该将其添加为子模块。