Skip to content

Commit

Permalink
feat(git): copy-commit
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Aug 24, 2023
1 parent 2c12c40 commit cd707b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/bins/bin/git-copy-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
#
# Copies the last commit SHA1 to the clipboard.
#
git show --format="%H" --no-patch HEAD --quiet | tee /dev/stderr | pbcopy

0 comments on commit cd707b9

Please sign in to comment.