This file contains hidden or 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 | |
| } |