Created
October 14, 2014 23:22
-
-
Save elskwid/9a45a6b6ebc7b8978f37 to your computer and use it in GitHub Desktop.
Git Aliases for Ruby Fundamentals class
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
# 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^ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://bit.ly/1w5OTnz