-
-
Save abakula1/9696648 to your computer and use it in GitHub Desktop.
Put a github link to your latest commit into your clipboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gi(){ | |
local githash=$(git log --pretty=format:'%H' -n 1) | |
local repoUrl=$(git ls-remote --get-url | sed 's/.*@//' | sed 's/.git//') | |
echo https://${repoUrl}/commit/${githash} | pbcopy | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment