Skip to content

Commit

Permalink
fix(git): copy-commit-id
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Feb 7, 2024
1 parent 60c0002 commit 5799c03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/bins/bin/git-copy-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
#
# Copies the last commit SHA1 to the clipboard.
#
git show --format="%H" --no-patch HEAD --quiet | tee /dev/stderr | pbcopy

git show --format="%H" --no-patch HEAD --quiet |
tee /dev/stderr |
tr -d '\n' |
pbcopy

0 comments on commit 5799c03

Please sign in to comment.