Tag: gitignore

Keeping multiple .gitignore files (local and remote) in the same repository

I have a repository with a .gitignore file, which excludes build paths (eg. vendor/ from Composer). I also have some local IDE paths (eg. .idea from PhpStorm) that I want to ignore, but that aren’t in the repository’s .gitignore file. I’m not sure how to do this. If git looked for files like .gitignore_* in […]

Git “remembers” old not-ignored files

I’ve found a weird problem in Git. I have a folder called cache under my Git structure that in the past (by mistake) wasn’t gitignored. The problem is that some commits ago I added this folder to the .gitignore file and now due to some cache changes I have noted that some files in this […]

.gitignore for Lua projects

I’ve noticed that GitHub does not have a .gitignore template for Lua projects. Are there any specific files/file extensions which should be excluded by default from source control for a Lua project? I don’t know enough about the Lua build/test/deploy cycle to know for myself yet.

How can I untrack/ignore a folder in an old branch without commiting the new changes?

Basically I accidentally added the ‘files’ folder to my commits, so I have four old branches of development that have the ‘files’ folder listed, with all the files. I don’t want to make any other changes to these branches, I just want to remove the files folder, and leave everything else exactly as it is. […]

Different Joomla .gitignore files in different repos

I am trying to use .gitignore file for my Joomla repo. I have noticed that the official joomla .gitignore file is much shorter as compared to the .gitignore provided by Github, which has an exhaustive list. Not sure why they are different. This is joomla’s .gitignore file: https://github.com/joomla/joomla-cms/blob/master/.gitignore This is from github: https://github.com/github/gitignore/blob/master/Joomla.gitignore Was that […]

A locally ignored file was updated on remote; can't checkout to remote branch now

Consider the following scenario: I have the following in my .gitignore: files/dependency/config.lua But since the file used to exist before adding it to gitignore, it was being tracked. I updated my index and removed the file manually following this question. Now, one of my colleague updated this file on remote server. When I try to […]

“git add .” adds ignored files

I have a gitignore file ~\.gitignore_global with several patterns. I added a directory to my source, and run git add . Then when I run git status it does show me that the old ignored files are still untracked, but the new files with the ignored extensions would be committed? this is my gitignore file: […]

Xcode .git ignore

My question is should you ignore the debugger folder and the Breakpoints_v2.xcbkptlist file. Or should the files be committed as well. Is there a standard Xcode 5 git ignore file like the one listed here but for Xcode 5. I like this one because its comments explains every ignore file in detail for people who […]

git not ignoring folder specified by .gitignore

I am using the .gitignore file from here but I still am still finding that CalFoo.xcodeproj/project.xcworkspace/xcuserdata/wcochran.xcuserdatad/UserInterfaceState.xcuserstate is staged for a commit? Why isn’t the folder xcuserdata excluded?

Github different versions of the same file: one for development & one for the repo

I’am authoring a PHP CMS, that needs an installation to work. The installation generate a config file. At localhost i work on an installed version (with a specific config file), But the users who download the CMS from github would have an empty config file (= uninstalled version). What I want : -a specific config […]

Git Baby is a git and github fan, let's start git clone.