Cannot specify GIT binary directory
See original GitHub issueDescription
Greetings,
The GitHub Desktop system requires an enhancement. This enhancement should enable the use of portable GIT binaries.
Version
- GitHub Desktop:
- Operating system: Windows 7
Steps to Reproduce
Expected Behavior
Actual Behavior
Additional Information
n/a
Logs
n/a
Thanks, coast
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Installing Git in PATH with GitHub client for Windows
Right-Click on My Computer · Click on Advanced System Settings · Click on Environment Variables · Then, under System Variables, look for the...
Read more >How to install GIT on your Windows machine? - SiteGround KB
To use GIT on your Windows computer you must first download and install it. ... in a different location click Browse and specify...
Read more >git-add Documentation - Git
Ignored files reached by directory recursion or filename globbing performed by Git (quote your globs before the shell) will be silently ignored. The...
Read more >When RStudio can't find Git | Data wrangling and analysis in R
Select New Directory > Empty Project. Do you see a checkbox "Create a git repository"? If yes, good, CHECK IT. Give this disposable...
Read more >How to Add Git to PATH on Windows - Linux Hint
To add the Git Path on Windows, open the “Edit Environment Variable”, select the “Path”, add Git folder path, and run the “git...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can change environment variables for your account without needing admin rights like this:
I went through these steps to test how Desktop works with a portable Git install:
downloading the latest PortableGit archive and extracting it to
C:\Users\shiftkey\Desktop\PortableGit
finding the
Path
environment variable for my current user and selecting “Edit”:C:\Users\shiftkey\Desktop\PortableGit\cmd\
to my user’s PATH environment variable (don’t forget thecmd
here!)Open in Command Prompt
git
now worksFor the moment we don’t plan to add a “Locate Git” option here, and instead rely on the user to setup
PATH
(this works for all OSes Desktop runs on currently) so I’m going to close this out as “by design”.If the pain here ends up with more issues like this it suggests that we need to revisit this dialog and make it clear what we’re looking for.
Thanks, changing the PATH worked. A Locate Git button isn’t a bad idea, might be a bit of work changing the PATH string for Git via the registry though. These days, altering such registry keys isn’t de rigeur, and usually requires account elevation (perhaps even as a dedicated child process after install), which explains why the Git clients don’t do it.