git : push a file to openshift online without tracking its changes

佐手、 提交于 2019-12-11 23:57:50

问题


I have a local repository and push my code to an openshift online remote repository. Openshift Online then deploys the app automatically.

Each time I modify a CSS, I have to run a script to minify it and the minified file gets tracked in order to be pushed on openshift.

Would it be possible to push the minified file without tracking its changes ? Through a git option or by building the minified file directly on the openshift cartridge ?


回答1:


You can make .gitignore file in your local repo, add your filename in it, next time you change the file, git will not add it to indexing stage but the old version of file will stay in local and remote repo unless your remove it. Ignoring files



来源:https://stackoverflow.com/questions/35770403/git-push-a-file-to-openshift-online-without-tracking-its-changes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!