Can’t ignore UserInterfaceState.xcuserstate

Git is probably already tracking the file. From the gitignore docs: To stop tracking a file that is currently tracked, use git rm –cached. Use this, replacing [project] and [username] with your info: git rm –cached [project].xcodeproj/project.xcworkspace/xcuserdata/[username].xcuserdatad/UserInterfaceState.xcuserstate git commit -m “Removed file that shouldn’t be tracked” Alternatively you can use the -a option to git … Read more

Explain which gitignore rule is ignoring my file

git check-ignore -v filename See the man page for more details. Original answer follows: git does not currently provide anything like this. But after seeing your question I did some googling and found that back in 2009 this feature was requested and partially implemented. After reading the thread, I realised it would not be too … Read more

Should I check in folder “node_modules” to Git when creating a Node.js app on Heroku?

Second Update The FAQ is not available anymore. From the documentation of shrinkwrap: If you wish to lock down the specific bytes included in a package, for example to have 100% confidence in being able to reproduce a deployment or build, then you ought to check your dependencies into source control, or pursue some other … Read more

git ignore exception

Use: *.dll #Exclude all dlls !foo.dll #Except for foo.dll From gitignore: An optional prefix ! which negates the pattern; any matching file excluded by a previous pattern will become included again. If a negated pattern matches, this will override lower precedence patterns sources.

Can I ‘git commit’ a file and ignore its content changes?

Sure, I do exactly this from time to time using git update-index –assume-unchanged [<file> …] To undo and start tracking again (if you forgot what files were untracked, see this question): git update-index –no-assume-unchanged [<file> …] Relevant documentation: –[no-]assume-unchanged When this flag is specified, the object names recorded for the paths are not updated. Instead, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)