Git overwrite certain files with every pull/push -


i working on project using git repository , having issues. building app angular , have several .js , .css files. using grunt concatenate , minify these files because don't want include .css , .js files in main html file. doing have import 2 files, css , js file both concatenated.

the easy solution use .gitignore on these files avoid constant merges in repository, thought too. building app angular, giving option build apps in phonegap , practically make native apps. problem ignoring concatenated .js , .css files build process needs these files build process.

i think can solve problem having these files never pulled , overwritten on pushing. or have version of file on repository overwrite local version, , upon pushing running grunt again (we using grunt watch) , having local version overwrite version on repository.

how guys solve such problem? may have read, have probable solutions, yet figure out how solve them. interested in solutions.

i solve with:

git update-index --assume-unchanged 

documentation git update-index

posible duplicate: keep file in git repo, don't track changes


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -