Top "Gitignore" questions

.gitignore is a file that lists files, directories, and/or path patterns that Git should not include as part of a repository.

.gitignore files added inside Git submodules

I recently reorganized my dotfiles to live inside a Git repository at ~/Dropbox/dotfiles and I'm using pathogen to bundle …

git vim gitignore git-submodules
add #*# glob to .gitignore?

I want to add emacs autosave files to my .gitignore with the glob #*# but of course, lines starting with a …

git gitignore
git excludes vs ignores

I use Tower for using Git in Mac. The settings in Tower has Ignores section which creates the .gitignore, but …

git gitignore git-tower
Environment variables locally and Heroku

I have a sinatra app in which i have a yml file to set environment variables, i call them using …

heroku sinatra environment-variables gitignore foreman
Interconversion of gitignore and hgignore?

I'm just starting to use hg-git to push some mercurial repositories to github, and I'm realizing that if people check …

git version-control mercurial gitignore hgignore
When to use leading slash in gitignore

I'm trying to understand more clearly the .gitignore syntax, and in particular as far as https://github.com/github/gitignore …

git gitignore
Ignore specific changes to a file in git, but not the entire file

I have a file in a git repository that has a local change on it. I want to have git …

git gitignore ignore
.gitignore does not understand my folder wildcard on windows

I'm encountering a weird issue with .gitignore on Windows. I want git to ignore all .exe files, except those in …

windows git msysgit gitignore
How do I push files specified in .gitignore?

If I have a "vendors" directory in my .gitignore, is there a way I can set up a remote that …

git gitignore git-push composer-php phpfog
Git excludesfile for a branch

I want to ignore certain files within a branch without having to rely on a tracked .gitignore file that will …

git gitignore git-config