Snippets

Various code snippets I've written

Git Aliases

lg = log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit blg = log origin/master..HEAD --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit amend = commit --amend --no-edit afp = "!git amend; git fp" fp = push --force fap = "!git fetch; git pull" rom = rebase origin/master room = rebase --onto origin/master from = "!git fetch; git rom" froom = "!git fetch; git room" wip = commit -am WIP st = status -sb rc = rebase --continue ra = rebase --abort cb = checkout -b br = branch -m up = "!git remote update -p; git merge --ff-only @{u}" mup = "!git checkout master; git up" cbm = "!git mup; git cb" cam = !git commit -a -m ca = !git commit -a
Dean Bowler © 2020