2

我想添加名称中带有 @ 符号的文件夹。由于程序限制,我无法重命名它们,但我也不能将它们添加到我的 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 存储库?

4

1 回答 1

2

您看到的错误与@文件夹中的字符无关,而是与您尝试将存储库添加到另一个存储库的事实有关。相反,您应该将其添加为子模块。

于 2013-02-27T12:36:29.080 回答