1

Working on a Java project with Eclipse I found some strange git behavior. When trying to commit files from my terminal (in zsh) git showed up with this:

Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)
new file:   "src/com/sierisimo/app\bfragments/FragmentMenu.java"


Changes not staged for commit:
  (use "git add/rm <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)

    deleted:    "src/com/sierisimo/app\bfragments/FragmentMenu.java"

And I found a Similar Question

But they are talking about octal numbers and "\b" doesn't look like an octal number...

What do you suggest?

Community
  • 1
  • 1
Sierisimo
  • 639
  • 8
  • 21

1 Answers1

1

Well, the thing was very strange, but the thing get solved by itself, first I added every thing that wasn't on that directory.

Then when all was ready except for that directory for commiting, I just moved to

src/com/sierisimo/

and then just added the full directory:

git add .

this added the directory with the correct name:

src/com/sierisimo/app/fragments/FragmentMenu.java

but the thing that annoys me was: what if I have thing that I didn't wanted to commit on subdirectories...

Well, at least I was able to commit my changes. If anyone gets a better ansewr to this, please provide it.

Sierisimo
  • 639
  • 8
  • 21