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
{{ message }}
Repository navigation
Feature Request - Allow easy copy of full commit SHA #1501
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.
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
Reacted by Brian Surowiec, Lindsey Meyer, Andrea Di Giorgi, Nicholas Chammas, Brennan Stehling, ytko1993, Alex Tan and luukdv
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.
Reacted by Lindsey Meyer, ytko1993 and Gabe Silverstein
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.
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.
Activity
xt0rted commentedon May 18, 2017
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.
nchammas commentedon May 19, 2017
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.
iAmWillShepherd commentedon May 25, 2017
Here is a workaround that you can use for now.
xt0rted commentedon May 25, 2017
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
niik commentedon Jun 20, 2017
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
titleapproach 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.iAmWillShepherd commentedon Jun 20, 2017
My PR #2045 actually addresses this issue.
joshaber commentedon Aug 10, 2017
Yup, this was done in #2045 💥