代码之家  ›  专栏  ›  技术社区  ›  Labanino

无法向Heroku中的现有项目添加新目录

git
  •  0
  • Labanino  · 技术社区  · 8 年前

    无法将新文件夹添加到现有项目。在我的项目中,我添加了一个新目录到 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")
    

    我可以推到站点的根目录,但不能 .

    1 回复  |  直到 8 年前
        1
  •  0
  •   Labanino    8 年前

    我不知道怎么做,但我有一个 .git tracking 文件在 projects/ rm -rf .git*