Answer the question
In order to leave comments, you need to log in
Git: how to ignore a file when pushing?
The project has a script.js file, script.min.js is generated from it.
Both files should be tracked when they are committed.
But the remote branch should only receive changes to the .min file when pushing or pulling.
How to write it?
If it matters, then I use git from under phpstorm
Answer the question
In order to leave comments, you need to log in
how to ignore a file when pushing?
Both files should be tracked when they are committed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question