Un-ignore all files in global .gitignore

After looking at git ignore exception, I realized that one can ignore files in a repository from a global .gitignore file.

Is there any way that you can override all rules from the global .gitignore file, so that the repository will have everything in it and nothing ignored? (besides un-ignoring every file individually)

  • Finding redundant branches in Git
  • git - How to list all files that have not been changed since a certain date?
  • Git changes my file permissions upon checkout
  • Build Plan error when depending on git package with extra-deps
  • git clone without project folder
  • Cloning git repository failed using eclipse
  • How to solve git merge error “Swap file .MERGE_MSG.swp already exists”
  • will creating a git branch delete my local changes
  • git svn: Delta source ended unexpectedly
  • How to rebase one Git repository onto another one?
  • Git Revert a Revert for a Merge
  • How to download all possible maven dependencies so they are local
  • 2 Solutions collect form web for “Un-ignore all files in global .gitignore”

    Create a .gitignore in the repo folder with one rule:


    This forgets the rules (with !) of all of the files (*) in the main .gitignore.

    You can.

    Create you own .gitignore file with appropriate rules and put into directory in where it shall apply. The rules will be applicable for a directory with local .gitignore and its subdirs.

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