How to Get Git Out of my User Folder #5183
Replies: 2 comments
-
The easiest method would be to define your
This would break everybody else's existing setups, and is therefore a complete non-starter. I'm not sure that you even considered the consequences on other users? |
Beta Was this translation helpful? Give feedback.
-
Except the
This isn't true at all. A new default setting at installation would have no impact on existing setups, just like how changing the default branch name doesn't affect existing repositories. What it would do is make new installations a lot more organized, and fascilitate a shift over the long term to a more manageable setup. |
Beta Was this translation helpful? Give feedback.
-
So, currently, Git likes to use the main user folder (C:\Users\Username) as a dumping ground for a variety of its files... I can't name all of the ones I've seen but right now I have specimens such as
.bash_history
,.lesshst
and of course.gitconfig
. I also recall getting a "sources" folder in a previous environment and I believe I've had at least one more folder in here as well. Needless to say, I don't appreciate my computer's equivelant to a foyer being used as a gratuitous AppData directory, and would much rather have Git drop its configuration files in... well most ideally the actual AppData directory. I know about setting theGIT_CONFIG_GLOBAL
envar for.gitconfig
(though I haven't been able to get it actually working yet due to some permissions issues), but it doesn't address the various other things that are dropped in here. Does anyone know if it's possible to fully redirect Git out of here and into somewhere else?I'd actually like to open an issue for this topic, to suggest a new default location since putting things straight into the User folder without at least another container is really just absurd and messy, but I'm not sure what the proper avenue would be. As far as I can tell, the issues tracker on this repository is only for actual bugs, and not feature suggestions? If someone could direct me, it would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions