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)

  • Can git do linear commit deltas during garbage collecton?
  • GitLab server-side hook not running - how to forward a git-push
  • What does this git log mean?
  • How can I enforce running grunt before git push?
  • Cygwin “git clone” gives “remote end hung up unexpectedly” against Ubuntu 10.04.1
  • How does git manage conflicting differences?
  • Xcode 6 + OS X Server 10.10 failing initial push to server
  • How can I use git to push to a specific folder on my site?
  • how can I list all the different versions of a file, and diff them also?
  • Git: commit message conventions/formats
  • Viewing a Deleted File in Git
  • “Hiding” things in GIT
  • 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.