We're working on erlang and chicagoboss for some projects. ChicagoBoss is a framework. When we create a project1 it becomes like this:
.
├── cb_admin
├── ChicagoBoss
├── ebin
├── project1
└── vagrant
And we did git init for project1 only. Later after finishing project1, we created another project2 with git init in it.
├── cb_admin
├── ChicagoBoss
├── ebin
├── project1
├── project2
└── vagrant
Sometimes, When I work in project1 git status shows me following output:
$ 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)
Even though there is nothing to commit in project2. Why untracked files appear? However to verify I went in my project2 dir and did a 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)
So to ignore the line for local only, I ran the following command without success:
$ git update-index --assume-unchanged ./
Ignoring path gift_tax/
Can one help me about
./ appearing there?../project2/ (from project1 status) and ./ (in project2 status) are consistent with a git init done on root folder (and no on project1 or project2)
Oh Okay, so someone from our team, might have done on root folder
Look for a .git folder. It is probably in /, not in project1 or project2
Do you know, What is
./appearing there?
Because project2 is not added to the repo which is in /.
Possible solution (warning: it would lose the current history)
/.git folder,git init in project1 and project2,If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With