The global folder location is decided for you by the installer. (for Git for Windows default install mine is at C:\Users\phili\.gitconfig)
I see you are won Windows (using C:\ is a give away;-). Windows does not have a root ('/') directory, so the install has to decide where that will be, and then puts the global config in a place that matches (from a Linux viewpoint) the right location relative to the root location (there's some stuff about the XDG* env variables for those on Linux..). But don't worry, you can ask the `git config` command to list where it found any of the config variables, including the path. `git config --help` or `git help config` will get you the (html) man pages. The --show-origin and --show-scope options should be read (& tried..) Hope that Helps. On Thursday, March 25, 2021 at 12:44:50 AM UTC Serena Li wrote: > Hello peeps in the git community! > > I am slowly learning about the gitignore files for projects and found out > that to prevent cluttering in the project .gitignore -> one can create a > global .gitignore outside the project folder! And some questions popped > up.... > > *Here is my setup:* > *C:\projects\project-xy* > *C:\Users\user1* > > So, my projects are in the projects folder. Many in the web suggest to put > the global .gitignore in the %user% folder. > > My stupid question is, do I just stubbornly put my global .gitignore in > the "user1" folder or should I put it in my "projects" folder? > > And what should I definitely include in my global .gitignore? > *OS: Windows* > *Editor: Unity, VS, VS Code, Intellij, Android Studio* > > Kind Regards, > Serena > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/068a54a0-c2b1-4ab0-a778-40191c5c225an%40googlegroups.com.