Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop PhpStorm from automatically staging deleted files to git

If I delete a file in PhpStorm it is automatically staged in git. I would like to do the staging by hand (git add/rm) when ever I am ready.

How can I prevent PhpStorm from automatically stage files if I delete them in PhpStorm?

Like if I delete the files anywhere else it works correctly.

like image 532
caramba Avatar asked Aug 25 '15 11:08

caramba


1 Answers

The option is under Settings > Version Control > Confirmation. You can configure the behavior for adding and deleting files independently.

  • When Add/remove silently is selected, git add/rm is staged automatically.
  • Do not add/remove is the option you are looking for.
  • Select Show options before adding/removing from version control to decide each time whether PhpStorm should stage the change.
like image 89
Darek Kay Avatar answered Sep 20 '22 12:09

Darek Kay