node.js - maintaining different package.json and config giles for dev and prod -
i have production branch , development branch on git.
when merging changes development branch production, ensure package.json , gulpfile.js not merged in changes.
how can prevent happening? deployment sake, want preserve productions package.json , gullpfile.js being untouched possible changes developments package , gulpfile
you can use git attributes tell git use different merge strategies specific files in project. 1 useful option tell git not try merge specific files when have conflicts, rather use side of merge on else’s.
full article : http://git-scm.com/book/en/v2/customizing-git-git-attributes#merge-strategies
Comments
Post a Comment