Git for windows absolute config path11/15/2023 The installation will include a dedicated Git Bash terminal, but you dont have to use that, instead, you can just open up the. Λ git config -show-origin -get user.emailįile:C:/Users//.gitconfig git config -show-origin -get user.emailįile:C:/Users//.gitconfig-work git config -show-origin -get user. To get started on Windows, youll first need to install Git. It also seems like the conditional work configuration is only used when issued from within a Git repository. A git config -show-origin -get user.email should than show you from where a config value is loaded/resolved. When you get to the Adjusting your Path environment setting, select the Run Git from the Windows Command Prompt option. That's at least working for me in Window's cmd and Cmder. With having your work Git repos in C:/Users//Documents/webstorm/corporate and the conditional work configuration should be located at C:/Users//.gitconfig-work. From anywhere inside the repo you can get the /reponame prefix by running git rev-parse -show-toplevel. Jonny Leeds comments below that you also can use where git. (provided you did install GoW: Gnu on Windows: 130 unix commands compiled for windows, including which). Your global C:/Users//.gitconfig should have this includeIf: If git.exe is indeed in your PATH (that is, if you can type a git -version in a DOS windows), then which git.exe will tell you where.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |