Skip to content

Instantly share code, notes, and snippets.

@cwonrails
Created October 3, 2017 12:54
Show Gist options
  • Save cwonrails/a69b584e27f77648f3a34207f787deb2 to your computer and use it in GitHub Desktop.
Save cwonrails/a69b584e27f77648f3a34207f787deb2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
function lazygit() {
git add .
git commit -a -m "$1"
git push
}
function upgrade-nvm() {
(
cd "$NVM_DIR"
git fetch origin
git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`
) && . "$NVM_DIR/nvm.sh"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment