Last active
December 24, 2015 12:59
-
-
Save ZevEisenberg/6801538 to your computer and use it in GitHub Desktop.
Copies full log of the last git commit to the clipboard (and displays it, too)
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
# this is useful for lots of git-related functions | |
alias returnIfNotGitRepo='if isGitRepo; then; ; else echo "No repositories here."; return 1; fi' | |
function glastcommit | |
{ | |
returnIfNotGitRepo | |
git show --name-only | |
git show --name-only | pbcopy | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment