gitignore

Why is .gitignore not including a file prefixed by a !

谁都会走 提交于 2020-01-03 09:38:12
问题 My .gitignore file reads as follows: build/ glucosia.xcodeproj/ !glucosia.xcodeproj/project.pbxproj core-plot/framework/build core-plot/framework/CorePlot-CocoaTouch.xcodeproj/ !core-plot/framework/CorePlot-CocoaTouch.xcodeproj/project.pbxproj .DS_Store Classes/.DS_Store Strangely, glucosia.xcodeproj/project.pbxproj is not ignored, as I would expect. But, core-plot/framework/CorePlot-CocoaTouch.xcodeproj/project.pbxproj is still being ignored. Any ideas? Thanks! 回答1: As mentioned in the

Managing a framework with Git, ignoring changes to given files after first pull

纵然是瞬间 提交于 2020-01-02 16:24:30
问题 I'm using git to manage an extended CodeIgniter Framework. It's a clone of the current CI release with extra helpers, libraries ect. I have many sites all using this framework and if I add a new helper method or fix a bug in one site I want to be able to easily update all the other sites without overwriting any of their custom files. I wish to achieve the following workflow Create a new site directory git init to initialise a blank local git repo Link this with the remote framework repo git

Managing a framework with Git, ignoring changes to given files after first pull

笑着哭i 提交于 2020-01-02 16:24:08
问题 I'm using git to manage an extended CodeIgniter Framework. It's a clone of the current CI release with extra helpers, libraries ect. I have many sites all using this framework and if I add a new helper method or fix a bug in one site I want to be able to easily update all the other sites without overwriting any of their custom files. I wish to achieve the following workflow Create a new site directory git init to initialise a blank local git repo Link this with the remote framework repo git

Gitignore all except one folder and all its content - regardless of the nesting level

做~自己de王妃 提交于 2020-01-02 07:08:16
问题 I know that this question has been asked many times, but honestly - in spite of many accepted answers, I've not found a neat solution to this problem. I stress the work neat here. I want to ignore everything except one folder and its entire contents. This will not achieve it: * !dest !dest/* that would preserve the dest folder and all files that are in dest , but not other folders within in as well as files in these sub-folders. Somebody wrote in comments! to one of similar questions that you

How to make a commit, or a change permanently local

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-01 19:11:21
问题 I have changed a file (configuration file) for my project. I would like this change to be only local and therefore disappear from the list of changes ready to be committed. Is there any easy way to do that? Please note that the configuration file is regularly stored in the repository. 回答1: One way is: git update-index --assume-unchanged -- /path/to/file Another: git update-index --skip-worktree -- /path/to/file (the second will resist to a git reset ) But I prefer using a content filter

Is it a good idea to put db/schema.rb to .gitignore list ?? [closed]

吃可爱长大的小学妹 提交于 2020-01-01 01:15:49
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . so what I'm suggesting in my job, is to put db/schema.rb into .gitignore file, so we don't have (time to time) merging problems. There are some concerns that if something terrible happen (meteor fall from the sky right on the DB server and simultaneously all the db/migrete

What grails project files should not be added to version control? (Grails 1.3.x)

核能气质少年 提交于 2019-12-31 01:25:51
问题 (This question has been asked before, but a while back: Suggestions for Grails .gitignore; it was answered for grails 1.0.x) What files in a Grails 1.3.x project should not be included in version control? 回答1: See http://grails.org/Checking+Projects+into+SVN - it has a short list of ignores. I would include .settings/ but I tend to keep .classpath and .project in source control because they change with the project. Then again, perhaps it's better simply to run grails integrate-with --eclipse

Tell git never to update a file

笑着哭i 提交于 2019-12-30 06:52:21
问题 I have a few files in git (namely configure files), that I need to be in the git repo, but I don't want them to ever update (for some reason, running them, and make, changes the configure file). So is there any way I can tell git to ignore any CHANGES to the file, but to keep the original file still in the repo? Currently the only way I've found out to do something like this is to add the file to the .gitignore file, and the git add the file to the project directly (using -f to override). Is

Tell git never to update a file

[亡魂溺海] 提交于 2019-12-30 06:51:08
问题 I have a few files in git (namely configure files), that I need to be in the git repo, but I don't want them to ever update (for some reason, running them, and make, changes the configure file). So is there any way I can tell git to ignore any CHANGES to the file, but to keep the original file still in the repo? Currently the only way I've found out to do something like this is to add the file to the .gitignore file, and the git add the file to the project directly (using -f to override). Is

GIT: How to keep ignored files when switching branches?

放肆的年华 提交于 2019-12-30 04:39:05
问题 I have an App.Local.config file which each developer has their own settings in. I do not want this file checked versioned in the GIT repo as every time it would be overwritten by another developers changes. So I deleted the file from the repo and added it to the ignore file. But now when developers switch branches, App.Local.config is deleted from their local filesystem. Ultimately what i would like is: new dev clones repo, gets a starting version of App.Local.config dev makes changes to App