question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot specify GIT binary directory

See original GitHub issue

Description

Greetings,

The GitHub Desktop system requires an enhancement. This enhancement should enable the use of portable GIT binaries.

Version

  • GitHub Desktop: image
  • Operating system: Windows 7

Steps to Reproduce

image

Expected Behavior

image

Actual Behavior

image

Additional Information

n/a

Logs

n/a

Thanks, coast

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
shiftkeycommented, Aug 23, 2018

The systems require an enhanced “Git CMD” prompt due to lack of admin rights to install/modify the systems’ Path environment variable.

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”:

  • adding C:\Users\shiftkey\Desktop\PortableGit\cmd\ to my user’s PATH environment variable (don’t forget the cmd here!)
  • launch GitHub Desktop again and launch Open in Command Prompt
  • no error, and git now works

For 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.

0reactions
lmstearncommented, Oct 22, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found