无法将新目录添加到我在 Heroku 中的现有项目中

  • 本文关键字:Heroku 项目 新目录 添加 git
  • 更新时间 :
  • 英文 :


无法向现有项目添加新文件夹。在我的项目中,我向projects/添加了一个新目录git add .但该目录不起作用。也尝试git add projects/ .但没有成功。

labanino:pixelandbyte ghostrider$ git add projects/ .
labanino:pixelandbyte ghostrider$ git status
On branch master
Your branch is up-to-date with 'heroku/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified:   projects/gcg (modified content, untracked content)
no changes added to commit (use "git add" and/or "git commit -a")

我可以推送到网站的根目录,但不能projects/.

我不知道怎么做,但我在projects/目录中有一个.git tracking文件。因此,我运行rm -rf .git*并解决了问题。

最新更新