我们正在一些项目中使用Erlang和ChicagoBoss。ChicagoBoss是一个框架。当我们创建一个
我们只对
有时候,当我在
尽管在“project2”中没有任何内容可以提交,为什么还会出现未跟踪的文件?不过,为了验证,我进入了我的“project2”目录并运行了“git status”命令:
因此,为了忽略仅本地的行,我运行了以下命令,但没有成功:
可以帮我翻译一下吗?
project1
时,它会变成这样:.
├── cb_admin
├── ChicagoBoss
├── ebin
├── project1
└── vagrant
我们只对
project1
执行了git init
。稍后完成project1
之后,我们又使用git init
创建了另一个project2
。├── cb_admin
├── ChicagoBoss
├── ebin
├── project1
├── project2
└── vagrant
有时候,当我在
project1
上工作时,git status 会显示以下输出:$ git status
On branch develop
Your branch is up-to-date with 'origin/develop'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
../project2/
nothing added to commit but untracked files present (use "git add" to track)
尽管在“project2”中没有任何内容可以提交,为什么还会出现未跟踪的文件?不过,为了验证,我进入了我的“project2”目录并运行了“git status”命令:
$ git status
On branch develop
Your branch is up-to-date with 'origin/develop'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
./
nothing added to commit but untracked files present (use "git add" to track)
因此,为了忽略仅本地的行,我运行了以下命令,但没有成功:
$ git update-index --assume-unchanged ./
Ignoring path gift_tax/
可以帮我翻译一下吗?
- “./”在这里表示什么?
- 我怎样才能仅在本地忽略它,而不影响远程目录中的更改?
/project1
文件夹上进行git init,还是在根目录上进行的呢?因为如果你在/project1
文件夹上进行git init,它应该只包含该文件夹中的所有文件或文件夹。不像你的git状态消息,它说../project2/
。所以我猜你是在根目录上进行的git init。 - Ary Wibowo./
是什么吗? - trex