PhpStorm : How can I exclude a file from pushing to repository

Hello!

I use Strg + K to push all modificated files.

How can I exclude a file from pushing to repository which was added once to repository.

0
4 comments
Avatar
Permanently deleted user

It depends on your VCS system. In git it is the .gitignore file. Add the file there and the file is excluded in future commits.

 

But usually, if it's a configuration file, you create a *.dist file, so that the user just have to remove the *.dist file in order to have a template for that config file. The *.dist files can be checked in and the real config files are ignored.

0
Avatar
Permanently deleted user

Thank you very much!

0
Avatar
Permanently deleted user

There's also Settings\Preferences | Version Control | Ignored Files.

0
Avatar
Permanently deleted user

Oh yes, thank you for your hint!

0

Please sign in to leave a comment.