Last active
September 10, 2018 14:44
-
-
Save ryanjohnston/eaca7135bc9a81c9c270b7304352002a to your computer and use it in GitHub Desktop.
[๐ ZSH - Snippets] Suggestions and tips for using ZSH. #cli
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
#!/usr/bin/env zsh | |
function use_lazy_git(){ | |
if (( $# == 0 )) | |
then echo "Missing commit message: lazygit <commit message>"; fi | |
git add . | |
git commit -a -m "$1" | |
git push | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TODO: Check to see if this is the master branch and force passing in a second force command.