When creating a project in GitLab, a file that has to be untracked was added (venv). I deleted it with git rm -r --cached venv and when I tried to commit these changes, I receive this message.
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
.idea/vcs.xml
venv/
nothing added to commit but untracked files present (use "git add" to track)
How to commit these changes and what was my mistake?
You must tell Git, which file you want to commit with
git add(by the way, that's what the error message says!)So simple use
git add -A(The whole documentation can be consulted here)
After added the files, you must
git commit -am "added newly untracked files"andgit pushto make the remote repository clear, which files should no longer be tracked.