Skip to content

Instantly share code, notes, and snippets.

@ryanjohnston
Last active September 10, 2018 14:44
Show Gist options
  • Save ryanjohnston/eaca7135bc9a81c9c270b7304352002a to your computer and use it in GitHub Desktop.
Save ryanjohnston/eaca7135bc9a81c9c270b7304352002a to your computer and use it in GitHub Desktop.
[๐Ÿ›  ZSH - Snippets] Suggestions and tips for using ZSH. #cli
#!/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
}
@ryanjohnston
Copy link
Author

ryanjohnston commented Dec 10, 2016

TODO: Check to see if this is the master branch and force passing in a second force command.

lazygit <message> [force]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment