You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktop Classic for Mac includes a little command line tool you can install that lets you do things like github . to open the current directory in Desktop.
Should we do that in TNG as well? Does Windows do something similar?
Reacted by Zeke Sikelianos, Eric Kelly, Sindre Sorhus, mkarklins, fregante, Ankush Gupta, Artem Sapegin, Eric Jinks, Scott Robertson, Luke van der Hoeven and 10 more
Windows had something similar (also called github). Here was it's options:
> github --help
--open-shell[=VALUE] Open a Git Shell to the working directory.
Specifying the working directory is optional.
--set-up-ssh Setup SSH Keys
--credentials=VALUE Credential caching api for use with Git
--install Install the url protocol into the registry
--delete-cache Clean all locally cached data
--delete-credentials Clear all locally cached credentials
--uninstall Uninstall the url protocol from the registry
-u, --url=VALUE Clone the specified GitHub repository
-p, --path=VALUE Selects the repository specified by the path.
Running `GitHub the-path` also works.
--cd, --current-directory=VALUE
Sets the workingdirectory of this instance. This
is used for internal purposes.
--config[=VALUE] Set or show configuration values
--reinstall-shortcuts Reinstall GitHub Desktop and Git Shell shortcuts
--toggle-developer-paths
Enables or disables adding developer tools such
as msbuild.exe to the GitHub Shell PATH
environment variable.
-h, -?, --help Display this message
From a support perspective, the command line tools on Windows have been really useful for miscellaneous shortcut and caching issues that users encounter. Rather than always having to tell them to navigate to directories I can just tell them to open up the Git Shell and run one command.
I would also say that having the ability to run github . has been nice for users asking how they can clone non-GitHub repositories on macOS. We have the + > Add option, but there's something nice about just being able to tell a user to run a couple quick commands to have their repository immediately in Desktop. On Windows we did have the URL drag-and-drop option, but even that has been finicky due to incompatibility with later versions of Edge/IE. If we allow for cloning arbitrary URLs in the future this feature may not be as necessary, but I still think users who switch between command line/Desktop would use it.
Desktop Classic for Mac includes a little command line tool
@joshaber was this a separate tool? Or did the Mac app itself just handle the command line options?
I actually rather like the idea of making it a separate tool. Also, given the name of the app is currently GitHub Desktop.exe, that's problematic on the command line.
Also, since the command line tool doesn't require a UI, it could be a candidate for a .NET Core console app. Might be a fun hack week project for me since I'm the one complaining about this all the time. 😛
I don't see anything related to GitHub Desktop. I am wondering if the path is only updated in a fresh installation, because I upgraded from 0.6.2. Could you tell me which path should be included in Path so that I can manually add it?
bin\github.bat shows up in %LocalAppData%\GitHubDesktop directory. The bin directory has been added to Path by the above command. The github (and github . etc.) command works now.
I've opened #2312 to track investigating the Windows-specific reports about it not being available on PATH after updating. Please comment there if you still have issues after updating to 0.7.0.
I have to run C:\Users\Admin\AppData\Local\GitHubDesktop\app-2.4.0\GitHubDesktop.exe --squirrel-updated - still, windows specific issue not fixed? - And in another machine bin folder appeared with the installation & no more additional steps. both machines running win 7 64bit.
Activity
shiftkey commentedon Nov 28, 2016
Windows had something similar (also called
github). Here was it's options:steveward commentedon Nov 29, 2016
From a support perspective, the command line tools on Windows have been really useful for miscellaneous shortcut and caching issues that users encounter. Rather than always having to tell them to navigate to directories I can just tell them to open up the Git Shell and run one command.
I would also say that having the ability to run
github .has been nice for users asking how they can clone non-GitHub repositories on macOS. We have the+>Addoption, but there's something nice about just being able to tell a user to run a couple quick commands to have their repository immediately in Desktop. On Windows we did have the URL drag-and-drop option, but even that has been finicky due to incompatibility with later versions of Edge/IE. If we allow for cloning arbitrary URLs in the future this feature may not be as necessary, but I still think users who switch between command line/Desktop would use it.I'd be 👍 for adding it to TNG.
[-]Command line tool?[/-][+]Command line tool[/+]shiftkey commentedon Feb 10, 2017
This one has your name on it @haacked!
haacked commentedon Feb 10, 2017
@joshaber was this a separate tool? Or did the Mac app itself just handle the command line options?
I actually rather like the idea of making it a separate tool. Also, given the name of the app is currently
GitHub Desktop.exe, that's problematic on the command line.haacked commentedon Feb 10, 2017
Also, since the command line tool doesn't require a UI, it could be a candidate for a .NET Core console app. Might be a fun hack week project for me since I'm the one complaining about this all the time. 😛
joshaber commentedon Feb 10, 2017
It was a separate tool/binary.
joshaber commentedon Feb 10, 2017
Xplat mannnnn 😝
haacked commentedon Feb 10, 2017
.NET Core is xplat! It's a new modern era buddy!
zeke commentedon May 2, 2017
Yes please! This feature is really the only thing I miss from OG GitHub Desktop. Here's what I used to use:
haacked commentedon May 2, 2017
Unassigning myself. I had high hopes I could carve out time for this. But it's time to face reality. 😦
20 remaining items
elfxiong commentedon Jul 20, 2017
Here is my
Path:C:\Program Files\Docker\Docker\Resources\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Git\cmd;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\nodejs\;C:\Users\elfxiong\AppData\Local\Programs\Python\Python36\Scripts\;C:\Users\elfxiong\AppData\Local\Programs\Python\Python36\;C:\Users\elfxiong\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Microsoft VS Code\bin;C:\Program Files\Binary;C:\Users\elfxiong\AppData\Local\atom\bin;C:\Program Files\Heroku\bin;C:\Users\elfxiong\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-0\171.4424.42\bin\;C:\Users\elfxiong\AppData\Roaming\npmI don't see anything related to GitHub Desktop. I am wondering if the path is only updated in a fresh installation, because I upgraded from 0.6.2. Could you tell me which path should be included in
Pathso that I can manually add it?joshaber commentedon Jul 20, 2017
Thanks @elfxiong! What files and directories are in
%LocalAppData%\GitHubDesktop?awwwis commentedon Jul 21, 2017
i have the exact same case as @elfxiong , the contents of the requested directory is:
joshaber commentedon Jul 21, 2017
@elfxiong @awwwis would you mind checking to see if you have any logs at
%APPDATA%\\GitHub Desktop\\logs\\*.desktop.production.log?awwwis commentedon Jul 21, 2017
yup I got a bunch of logs, anything particular I need to look for?
joshaber commentedon Jul 21, 2017
Could you upload the most recent ones for me to check out?
awwwis commentedon Jul 21, 2017
2017-07-21.desktop.production.log.txt
joshaber commentedon Jul 21, 2017
Thanks @awwwis! Unfortunately that doesn't have anything helpful 😞
Let's try setting it up manually. In a command prompt, try running:
And then try again. If that still doesn't work, could you again list the contents of
%LocalAppData%\GitHubDesktop?elfxiong commentedon Jul 21, 2017
Thank you, @joshaber. Manual setup works!
After running (I need to add the quotes because of the space in the file name)
bin\github.batshows up in%LocalAppData%\GitHubDesktopdirectory. Thebindirectory has been added toPathby the above command. Thegithub(andgithub .etc.) command works now.shiftkey commentedon Jul 24, 2017
I've opened #2312 to track investigating the Windows-specific reports about it not being available on
PATHafter updating. Please comment there if you still have issues after updating to0.7.0.baneeishaque commentedon Apr 7, 2020
I have to run
C:\Users\Admin\AppData\Local\GitHubDesktop\app-2.4.0\GitHubDesktop.exe --squirrel-updated- still, windows specific issue not fixed? - And in another machine bin folder appeared with the installation & no more additional steps. both machines running win 7 64bit.