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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -