Answer the question
In order to leave comments, you need to log in
How to properly deploy with git?
On my local machine, I have two branches master and develop. I develop new functionality on develop and periodically merge into master. When it is necessary to start master, some files and folders must be ignored. For example, all files from the assets folder (since the resources are collected using grunt-a in a different directory).
You can't add assets/* to .gitignore because it won't track changes to assets.
Please suggest some solution.
Thank you!
Answer the question
In order to leave comments, you need to log in
You can write a simple BASH script for deployment, and hang its execution on the push hook. There are many examples: here , here and here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question