Skip to content

Command line tool #696

Closed
Closed

Description

@joshaber

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?

Activity

  1. shiftkey commented on Nov 28, 2016

    @shiftkey
    Member

    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
    
  2. steveward commented on Nov 29, 2016

    @steveward
    Contributor

    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.

    I'd be 👍 for adding it to TNG.

  3. changed the title [-]Command line tool?[/-] [+]Command line tool[/+] on Jan 19, 2017
  4. shiftkey commented on Feb 10, 2017

    @shiftkey
    Member

    This one has your name on it @haacked!

  5. haacked commented on Feb 10, 2017

    @haacked
    Contributor

    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.

  6. haacked commented on Feb 10, 2017

    @haacked
    Contributor

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

  7. joshaber commented on Feb 10, 2017

    @joshaber
    ContributorAuthor

    @joshaber was this a separate tool?

    It was a separate tool/binary.

  8. joshaber commented on Feb 10, 2017

    @joshaber
    ContributorAuthor

    it could be a candidate for a .NET Core console app

    Xplat mannnnn 😝

  9. haacked commented on Feb 10, 2017

    @haacked
    Contributor

    Xplat mannnnn 😝

    .NET Core is xplat! It's a new modern era buddy!

  10. zeke commented on May 2, 2017

    @zeke
    Contributor

    Yes please! This feature is really the only thing I miss from OG GitHub Desktop. Here's what I used to use:

    gd() {
      dir=$1
      open ${dir:-.} -a "GitHub Desktop" # default to .
    }
  11. removed their assignment
    on May 2, 2017
  12. haacked commented on May 2, 2017

    @haacked
    Contributor

    Unassigning myself. I had high hopes I could carve out time for this. But it's time to face reality. 😦

  13. 20 remaining items

  14. elfxiong commented on Jul 20, 2017

    @elfxiong

    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\npm

    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?

  15. joshaber commented on Jul 20, 2017

    @joshaber
    ContributorAuthor

    Thanks @elfxiong! What files and directories are in %LocalAppData%\GitHubDesktop?

  16. awwwis commented on Jul 21, 2017

    @awwwis

    i have the exact same case as @elfxiong , the contents of the requested directory is:

    MINGW32 ~/AppData/Local/GitHubDesktop
    $ ls
     app.ico      app-0.7.0/             packages/           Update.exe*
     app-0.6.2/  'GitHub Desktop.exe'*   SquirrelSetup.log
    
  17. joshaber commented on Jul 21, 2017

    @joshaber
    ContributorAuthor

    @elfxiong @awwwis would you mind checking to see if you have any logs at %APPDATA%\\GitHub Desktop\\logs\\*.desktop.production.log?

  18. awwwis commented on Jul 21, 2017

    @awwwis

    yup I got a bunch of logs, anything particular I need to look for?

  19. joshaber commented on Jul 21, 2017

    @joshaber
    ContributorAuthor

    Could you upload the most recent ones for me to check out?

  20. awwwis commented on Jul 21, 2017

    @awwwis
  21. joshaber commented on Jul 21, 2017

    @joshaber
    ContributorAuthor

    Thanks @awwwis! Unfortunately that doesn't have anything helpful 😞

    Let's try setting it up manually. In a command prompt, try running:

    %LocalAppData%\GitHubDesktop\app-0.7.0\GitHub Desktop.exe --squirrel-updated
    

    And then try again. If that still doesn't work, could you again list the contents of %LocalAppData%\GitHubDesktop?

  22. elfxiong commented on Jul 21, 2017

    @elfxiong

    Thank you, @joshaber. Manual setup works!

    After running (I need to add the quotes because of the space in the file name)

    "%LocalAppData%\GitHubDesktop\app-0.7.0\GitHub Desktop.exe" --squirrel-updated
    

    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.

  23. shiftkey commented on Jul 24, 2017

    @shiftkey
    Member

    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.

  24. locked as resolved and limited conversation to collaborators on Jul 21, 2018
  25. unlocked this conversation on Sep 27, 2018
  26. baneeishaque commented on Apr 7, 2020

    @baneeishaque

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions