I work on a git repo with many many branches in it.
Now i wanted to add a new feature from another location.
So i did cp -r /source /target
The new files are in my repo, but git ignores them.
If i do git status
after i copied that files, git says 'working directory clean'...
Why this happens? It is not ignored in .gitignore
.
I tried this also with other files, these files appear immediately in git status. What i did wrong and how i can fix this?
I read the other answers, but cant't find answers which helped.