caramba
caramba

Reputation: 22480

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.

Upvotes: 7

Views: 922

Answers (1)

Darek Kay
Darek Kay

Reputation: 16649

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.

Upvotes: 13

Related Questions