Skip to content

Instantly share code, notes, and snippets.

@jkosoy
Created May 24, 2012 22:11
Show Gist options
  • Save jkosoy/2784499 to your computer and use it in GitHub Desktop.
Save jkosoy/2784499 to your computer and use it in GitHub Desktop.
Git Tips
git checkout develop
git log -1
git checkout translation
git cherry-pick [commit hash goes here]
git push origin --delete branch
# use this instead of git log
# via http://coderwall.com/p/euwpig?i=3&p=1&t=git
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit"
git lg
git branch -—track master remotes/origin/master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment