Skip to content

Feature Request - Allow easy copy of full commit SHA #1501

Closed

Description

@jonabc

Description

Oftentimes I have to reference a commit SHA after committing and would love an easy way to get it from Desktop. More often than not I'll have competing product GitKraken open which lets me 1-click copy a commit SHA to the clipboard.

screen shot 2017-05-16 at 10 56 46 am

Maybe something like a little clipboard icon button can be put next to the commit SHA link that copies the full SHA text?

Version

GitHub Desktop version: 0.5.3
OS version: 10.12.4

Activity

  1. xt0rted commented on May 18, 2017

    @xt0rted
    Contributor

    In the native version clicking on the commit SHA would copy it and a link to view on GitHub.com was above the list of files in the commit. Would like to see this return as it made rebasing easier.

  2. nchammas commented on May 19, 2017

    @nchammas

    There is also a shortcut on the native version for copying the commit SHA: Option + Command + C

    Would be nice if the new GitHub Desktop offered something similar, though a quick copy button also works.

  3. iAmWillShepherd commented on May 25, 2017

    @iAmWillShepherd
    Contributor

    Here is a workaround that you can use for now.

    1. Right click on the SHA (this will select it)
    2. Press Command+C or CTRL+C
  4. xt0rted commented on May 25, 2017

    @xt0rted
    Contributor

    On Windows right clicking on the SHA doesn't select it. At least not in 0.5.8. You can only select the SHA when it's a link right now, so if the commit hasn't been pushed yet your out of luck. I mentioned this in #1291 (comment).

    What I'd like to see is the existing SHA always be a link, but when clicked it copies it to the clipboard. Then if the commit has been pushed a 3rd option shows after the "X changed files" item that is a link to view it on GitHub.

    This is a mockup of what I'm talking about

    image

  5. niik commented on Jun 20, 2017

    @niik
    Member

    Me and @donokuda discussed this in the last design review (#2060) and we think that the proposal by @xt0rted in #1778 is a good step along the way but we'd ideally like to add more versatile tooltips to make this feature more understandable. For not though the title approach is a step in the right direction but we'll keep this issue in the design review project so that we can keep iterating on the behavior.

  6. iAmWillShepherd commented on Jun 20, 2017

    @iAmWillShepherd
    Contributor

    My PR #2045 actually addresses this issue.

  7. joshaber commented on Aug 10, 2017

    @joshaber
    Contributor

    Yup, this was done in #2045 💥

  8. locked as resolved and limited conversation to collaborators on Jul 21, 2018
  9. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions