Skip to content

Instantly share code, notes, and snippets.

@hickerm
Last active March 13, 2017 18:24
Show Gist options
  • Save hickerm/7126408 to your computer and use it in GitHub Desktop.
Save hickerm/7126408 to your computer and use it in GitHub Desktop.
//show last 5 commits on one line
git log --pretty=oneline --max-count=5
//create a branch and switch to it at same time
git checkout -b branchname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment