Git rm is the exact opposite of add.
So if you *add*ed files and then called git rm --cached smth it will remove that something from the staged changes. If you didn't change or add anything since the last commit, calling git rm will create this change (as if you would delete the file), staging it for your next commit.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think it wont remove from remote repo but staging area.
Git
rm
is the exact opposite ofadd
.So if you *add*ed files and then called
git rm --cached smth
it will remove that something from the staged changes. If you didn't change or add anything since the last commit, callinggit rm
will create this change (as if you would delete the file), staging it for your next commit.