git CMD finds .gitconfig but Windows cmd does not?git config command returns: fatal: unable to read config file '%HOMEDRIVE%%HOMEPATH%/.gitconfig': No such file or directoryHow do I discard unstaged changes in Git?How to remove local (untracked) files from the current Git working tree?What is the difference between 'git pull' and 'git fetch'?How do I undo 'git add' before commit?How do I undo the most recent local commits in Git?How do I force “git pull” to overwrite local files?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?How do I revert a Git repository to a previous commit?How do I rename a local Git branch?
What was the point of separating stdout and stderr?
Cup and Trade: The Perfect Nutmeg Soup
Why doesn't SpaceX land boosters in Africa?
Early 2000s movie about time travel, protagonist travels back to save girlfriend, then into multiple points in future
How can combining souls together not increase its volume?
How could an armless race establish civilization?
Do home values typically rise and fall consistently across different price ranges?
How do ohm meters measure high resistances?
Why wasn't ASCII designed with a contiguous alphanumeric character order?
How to describe POV characters?
Journal standards vs. personal standards
What verb for taking advantage fits in "I don't want to ________ on the friendship"?
A finite 2 group containing the dihedral group of order 16?
Does a lens with a bigger max. aperture focus faster than a lens with a smaller max. aperture?
Discworld quote about an "old couple" who having said everything to each other, can finally go about living their lives
Iterate over deepest values in a nested Association
Sentence editor
What prevents a US state from colonizing a smaller state?
Making a wall made from glass bricks
Compiling all Exception messages into a string
If a USA citizen marries a foreign citizen who has a kid from a previous marriage
Quantum jump/leap, exist or not, and instantaneous or not (for electrons)?
When was this photo of Mission Dolores *actually* taken?
Adjective for 'made of pus' or 'corrupted by pus' or something of something of pus
git CMD finds .gitconfig but Windows cmd does not?
git config command returns: fatal: unable to read config file '%HOMEDRIVE%%HOMEPATH%/.gitconfig': No such file or directoryHow do I discard unstaged changes in Git?How to remove local (untracked) files from the current Git working tree?What is the difference between 'git pull' and 'git fetch'?How do I undo 'git add' before commit?How do I undo the most recent local commits in Git?How do I force “git pull” to overwrite local files?How do I check out a remote Git branch?How do I delete a Git branch locally and remotely?How do I revert a Git repository to a previous commit?How do I rename a local Git branch?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
When I run git config under git cmd, all is well. however when I run in in plain old Windows cmd, it can't find .gitconfig. I can't changes the env vars Home, Homedrive or Homepath since those are set by our corporate ad team.
I'd like to know why git cmd works but git from windows cmd doesn't and what i can do about it. See screenshot:
Screenshot showing env vars in both shells:
windows git config
add a comment |
When I run git config under git cmd, all is well. however when I run in in plain old Windows cmd, it can't find .gitconfig. I can't changes the env vars Home, Homedrive or Homepath since those are set by our corporate ad team.
I'd like to know why git cmd works but git from windows cmd doesn't and what i can do about it. See screenshot:
Screenshot showing env vars in both shells:
windows git config
add a comment |
When I run git config under git cmd, all is well. however when I run in in plain old Windows cmd, it can't find .gitconfig. I can't changes the env vars Home, Homedrive or Homepath since those are set by our corporate ad team.
I'd like to know why git cmd works but git from windows cmd doesn't and what i can do about it. See screenshot:
Screenshot showing env vars in both shells:
windows git config
When I run git config under git cmd, all is well. however when I run in in plain old Windows cmd, it can't find .gitconfig. I can't changes the env vars Home, Homedrive or Homepath since those are set by our corporate ad team.
I'd like to know why git cmd works but git from windows cmd doesn't and what i can do about it. See screenshot:
Screenshot showing env vars in both shells:
windows git config
windows git config
edited Mar 25 at 17:51
user1443098
asked Mar 25 at 14:20
user1443098user1443098
1,9141 gold badge13 silver badges29 bronze badges
1,9141 gold badge13 silver badges29 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I'm guessing your home folder in the git bash is a different folders than %HOMEDRIVE%%HOMEPATH% in the Windows cmd prompt. Echo the two paths and compare them.
yeah they are the same. I updated the original post
– user1443098
Mar 25 at 17:50
Interesting, The git-cmd has HOME env var set as the concatenation of HOMEDIR and HOMEPATH. When I set that, all was well. OTOH, git is complaining about the wrong thing, which is misleading. OTOOH, it should probably point at %USERPROFILE% since that is local, and my other location is network, which would of course fail if I was on the road.
– user1443098
Mar 25 at 18:09
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55339943%2fgit-cmd-finds-gitconfig-but-windows-cmd-does-not%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'm guessing your home folder in the git bash is a different folders than %HOMEDRIVE%%HOMEPATH% in the Windows cmd prompt. Echo the two paths and compare them.
yeah they are the same. I updated the original post
– user1443098
Mar 25 at 17:50
Interesting, The git-cmd has HOME env var set as the concatenation of HOMEDIR and HOMEPATH. When I set that, all was well. OTOH, git is complaining about the wrong thing, which is misleading. OTOOH, it should probably point at %USERPROFILE% since that is local, and my other location is network, which would of course fail if I was on the road.
– user1443098
Mar 25 at 18:09
add a comment |
I'm guessing your home folder in the git bash is a different folders than %HOMEDRIVE%%HOMEPATH% in the Windows cmd prompt. Echo the two paths and compare them.
yeah they are the same. I updated the original post
– user1443098
Mar 25 at 17:50
Interesting, The git-cmd has HOME env var set as the concatenation of HOMEDIR and HOMEPATH. When I set that, all was well. OTOH, git is complaining about the wrong thing, which is misleading. OTOOH, it should probably point at %USERPROFILE% since that is local, and my other location is network, which would of course fail if I was on the road.
– user1443098
Mar 25 at 18:09
add a comment |
I'm guessing your home folder in the git bash is a different folders than %HOMEDRIVE%%HOMEPATH% in the Windows cmd prompt. Echo the two paths and compare them.
I'm guessing your home folder in the git bash is a different folders than %HOMEDRIVE%%HOMEPATH% in the Windows cmd prompt. Echo the two paths and compare them.
answered Mar 25 at 17:25
EncryptedWatermelonEncryptedWatermelon
6571 silver badge18 bronze badges
6571 silver badge18 bronze badges
yeah they are the same. I updated the original post
– user1443098
Mar 25 at 17:50
Interesting, The git-cmd has HOME env var set as the concatenation of HOMEDIR and HOMEPATH. When I set that, all was well. OTOH, git is complaining about the wrong thing, which is misleading. OTOOH, it should probably point at %USERPROFILE% since that is local, and my other location is network, which would of course fail if I was on the road.
– user1443098
Mar 25 at 18:09
add a comment |
yeah they are the same. I updated the original post
– user1443098
Mar 25 at 17:50
Interesting, The git-cmd has HOME env var set as the concatenation of HOMEDIR and HOMEPATH. When I set that, all was well. OTOH, git is complaining about the wrong thing, which is misleading. OTOOH, it should probably point at %USERPROFILE% since that is local, and my other location is network, which would of course fail if I was on the road.
– user1443098
Mar 25 at 18:09
yeah they are the same. I updated the original post
– user1443098
Mar 25 at 17:50
yeah they are the same. I updated the original post
– user1443098
Mar 25 at 17:50
Interesting, The git-cmd has HOME env var set as the concatenation of HOMEDIR and HOMEPATH. When I set that, all was well. OTOH, git is complaining about the wrong thing, which is misleading. OTOOH, it should probably point at %USERPROFILE% since that is local, and my other location is network, which would of course fail if I was on the road.
– user1443098
Mar 25 at 18:09
Interesting, The git-cmd has HOME env var set as the concatenation of HOMEDIR and HOMEPATH. When I set that, all was well. OTOH, git is complaining about the wrong thing, which is misleading. OTOOH, it should probably point at %USERPROFILE% since that is local, and my other location is network, which would of course fail if I was on the road.
– user1443098
Mar 25 at 18:09
add a comment |
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55339943%2fgit-cmd-finds-gitconfig-but-windows-cmd-does-not%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown