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)

  • Merge tracking for Git cherry picking?
  • How can I manually remove a blob object from a tree in Git?
  • git push fatal: unable to create thread: Resource temporarily unavailable
  • How to fast track branch after pull request in Github
  • Setting color-words option by default on git-show
  • Atom git-plus difficulties
  • Github flavored Markdown and pygments highlighting in Jekyll
  • How do you delete a git tag and propagate said delete through git pull to others?
  • Why all my Xcode commits to Bitbucket show other user 'Author Name' on Bitbucket?
  • Dockerhub automated builds with multiple private repos
  • Why do I need to do `--set-upstream` all the time?
  • Running git from Windows Cmd line: Where are key files?
  • 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.