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;








1















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:



enter image description here



Screenshot showing env vars in both shells:



enter image description here










share|improve this question






























    1















    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:



    enter image description here



    Screenshot showing env vars in both shells:



    enter image description here










    share|improve this question


























      1












      1








      1








      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:



      enter image description here



      Screenshot showing env vars in both shells:



      enter image description here










      share|improve this question
















      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:



      enter image description here



      Screenshot showing env vars in both shells:



      enter image description here







      windows git config






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      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






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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.






          share|improve this answer























          • 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










          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
          );



          );













          draft saved

          draft discarded


















          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









          0














          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.






          share|improve this answer























          • 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















          0














          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.






          share|improve this answer























          • 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













          0












          0








          0







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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

















          • 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








          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.



















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현