2013-02-27 81 views
2

我想添加名稱中有@符號的文件夾。由於程序限制,我無法重命名它們,但我也不能將它們添加到我的github存儲庫。git在@符號文件夾內添加文件 - 致命:不是git存儲庫

的文件夾名稱:

[email protected] 
[email protected] 

的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/[email protected]/../../.git/modules/ 
modules/zotero-word-for-windows-integration 

是否有任何解決方案,文件夾內的@符號文件添加到一個Git倉庫?

+0

確切的命令是什麼?我可以在包含「@」的目錄中添加文件(不要在git中添加文件夾,只能是文件) – CharlesB 2013-02-27 11:22:02

+0

嗨Charles。我將完整的git過程添加到初始文章中。 – orschiro 2013-02-27 11:26:33

+1

你正在添加一個包含自己的目錄* git倉庫,這是不對的。你想做什麼? – CharlesB 2013-02-27 11:36:59

回答

2

您看到的錯誤與文件夾中的@字符無關,而是與您嘗試將存儲庫添加到另一個存儲庫的事實無關。相反,您應該將其添加爲子模塊。

相關問題