Skip to content

Instantly share code, notes, and snippets.

@elskwid
Created October 14, 2014 23:22
Show Gist options
  • Save elskwid/9a45a6b6ebc7b8978f37 to your computer and use it in GitHub Desktop.
Save elskwid/9a45a6b6ebc7b8978f37 to your computer and use it in GitHub Desktop.
Git Aliases for Ruby Fundamentals class
# rails fundamentals aliases
## see all the branches we have locally
branches = branch -l
## see a oneline summary of log messages
logs = log --oneline
## add all changed files and commit them with optional message
save = !sh -c 'msg=\"Save changes\" && git add -A . && git commit -m \"${1:-$msg}\"' -
## undo the last commit
undo = reset --soft HEAD^
@elskwid
Copy link
Author

elskwid commented Oct 14, 2014

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