添加 git 文件夹添加不起作用 - 出现白色箭头
Add git folder add not working - getting white arrow
我已经阅读了 Whosebug 上的其他一些帖子并意识到了这个问题,但是,我该如何解决这个问题?我试过:git rm --cached client_folder
但我收到以下错误消息:我有同样的问题:
Reinitialized existing Git repository in /Users/user/Desktop/final-8/.git/
User@User final-8 % git add client
warning: adding embedded git repository: client
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: git submodule add <url> client
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached client
hint:
hint: See "git help submodule" for more information.
我该如何解决这个问题?我试过:git rm --cached client_folder
但出现以下错误消息:
git rm --cached client
error: the following file has staged content different from both the
file and the HEAD:
client
(use -f to force removal)
[edit] 我 运行 git rm --cached -f client
这就是我得到的:
User final-8 % git rm --cached -f client
**rm 'client'**
User final-8 % git init
Reinitialized existing Git repository in /Users//Desktop/final-8/.git/
User final-8 % git add client
warning: adding embedded git repository: client
hint: You've added another git repository inside your current repository. hint: Clones of the outer repository will not contain the contents of hint: the embedded repository and will not know how to obtain it.
我再次尝试,现在我得到:
client % git rm --cached -f client
fatal: pathspec 'client' did not match any files
最后一行实际上是在您的 git rm
命令上打开 -f
选项的指示:
git rm --cached -f client
我已经阅读了 Whosebug 上的其他一些帖子并意识到了这个问题,但是,我该如何解决这个问题?我试过:git rm --cached client_folder
但我收到以下错误消息:我有同样的问题:
Reinitialized existing Git repository in /Users/user/Desktop/final-8/.git/
User@User final-8 % git add client
warning: adding embedded git repository: client
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.
hint: If you meant to add a submodule, use:
hint:
hint: git submodule add <url> client
hint:
hint: If you added this path by mistake, you can remove it from the
hint: index with:
hint:
hint: git rm --cached client
hint:
hint: See "git help submodule" for more information.
我该如何解决这个问题?我试过:git rm --cached client_folder
但出现以下错误消息:
git rm --cached client
error: the following file has staged content different from both the
file and the HEAD:
client
(use -f to force removal)
[edit] 我 运行 git rm --cached -f client
这就是我得到的:
User final-8 % git rm --cached -f client
**rm 'client'**
User final-8 % git init
Reinitialized existing Git repository in /Users//Desktop/final-8/.git/
User final-8 % git add client
warning: adding embedded git repository: client
hint: You've added another git repository inside your current repository. hint: Clones of the outer repository will not contain the contents of hint: the embedded repository and will not know how to obtain it.
我再次尝试,现在我得到:
client % git rm --cached -f client
fatal: pathspec 'client' did not match any files
最后一行实际上是在您的 git rm
命令上打开 -f
选项的指示:
git rm --cached -f client