Skip to content

Instantly share code, notes, and snippets.

[alias]
co = checkout
st = status
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
uncommit = reset --soft HEAD^
graph = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
cam = commit -am
list =-alias config --get-regexp alias
@johandam
johandam / var_dump
Last active August 19, 2020 10:30
Sublime Snippet Var_dump
<snippet>
<content><![CDATA[
echo '<pre>';
var_dump($1);
die;
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>dump</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->