|How do I control where Eclipse gets the git config from? [message #1822924]
||Mon, 16 March 2020 21:03
| David M. Karr
Registered: July 2009
I feel like I've asked this question before, but I continue to have this problem.|
I store my git config in "C:\Users\<myuid>\.gitconfig". Quite often, when I do things in Eclipse, it recognizes that this is where my gitconfig resides, and everything works.
Then there are the times when it seems to look in a completely different place, being "H:\.gitconfig". This is not very useful, as that drive doesn't even exist. When I look at env vars from the shell, I do see a "HOMEDRIVE=H:" property. I don't know what that's for, and it's not even SET in the Environment Variables section of Control Panel.
Eclipse doesn't give me the ability to specify where to get the .gitconfig from, it just makes up its mind somehow.
I'm using 2019-12.
What's even stranger is that it seems like it changed this in the middle of my session. I had performed operations on three different repositories, creating a branch in each and then pushing the created branch for the first two, and then attempting to commit and push a change in the third repository. On the commit/push on the third repository, I noticed that our git hooks reported a failure, saying my user/email settings were wrong. We have a hook on the server that requires our user and email properties to be in a specific format.
When I looked on the central bitbucket server, all three repos had the new branch, but the third repo was missing the commit I added.
[Updated on: Mon, 16 March 2020 21:24]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03382 seconds