Created
March 28, 2024 15:57
-
-
Save usmanity/1cbf8af54a32107bc3113f5dfca22d1a to your computer and use it in GitHub Desktop.
quick commit
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
function commit() { | |
local commit_message | |
if [[ $# -eq 0 ]]; then | |
echo "Usage: commit <message>" | |
return 1 | |
fi | |
commit_message="${*:1}" | |
git commit -am "$commit_message" | |
} | |
alias c=commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment