W
W
WebDev2016-05-26 10:32:43
git
WebDev, 2016-05-26 10:32:43

How to remove a file from git?

Hello, tell me please, I work through git in phpstorm. It took one file to be added to .gitognore for it to stop being tracked. I added it to .gitignore and wrote git rm --cached [file], but it continues to be tracked. What should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2016-05-26
@kirill-93

PHPStorm + GIT. How to set up ignore?

S
spotifi, 2016-05-26
@spotifi

after git rm
git commit -a -m "lalala"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question