Skip to content

Instantly share code, notes, and snippets.

@yurikoval
Last active July 1, 2020 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurikoval/b0953ce705f6f5aa74325d4a95d43c94 to your computer and use it in GitHub Desktop.
Save yurikoval/b0953ce705f6f5aa74325d4a95d43c94 to your computer and use it in GitHub Desktop.
Setup git
#!/bin/sh
# http://uberblo.gs/2010/12/git-lol-the-other-git-log
git config --global --add alias.lol "log --graph --decorate --pretty=oneline --abbrev-commit"
git config --global --add alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all"
git config --global --add alias.m "merge --no-ff --log"
git config --global --add alias.st "status"
git config --global --add alias.br "branch"
git config --global --add alias.bra "branch --all"
git config --global --add alias.sweep "!git branch --merged master | grep -v 'master$' | xargs git branch -d && git remote prune origin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment