Skip to content

Instantly share code, notes, and snippets.

@ManWithBear
Last active June 18, 2018 07:13
Show Gist options
  • Save ManWithBear/70b34ec4c0c470a4330a299f512afc37 to your computer and use it in GitHub Desktop.
Save ManWithBear/70b34ec4c0c470a4330a299f512afc37 to your computer and use it in GitHub Desktop.
My git aliases
[alias]
co = checkout
ci = commit
st = status
br = branch
hist = log --graph --pretty=format:\"%Cred%h%Creset %Cred|%Creset %s%C(cyan)%d%Creset\"
histFull = log --graph --pretty=format:\"%Cred%h%Creset %ad %Cred|%Creset %s%C(cyan)%d %Cgreen(%cr) %Cblue[%an]%Creset\" --date=short
last = log -n1 --graph --pretty=format:\"%Cred%h%Creset %ad %Cred|%Creset %s%C(cyan)%d %Cgreen(%cr) %Cblue[%an]%Creset\" --date=short
changes = log --pretty=format:\"%s\"
type = cat-file -t
dump = cat-file -p
amend = commit --amend --no-edit
[pull]
[push]
default = simple
[pull]
[rerere]
enabled = true
[pull]
rebase = preserve
[help]
autocorrect = 0
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
@ManWithBear
Copy link
Author

ManWithBear commented Jul 26, 2017

PS1='\[\e[31m\][\[\e[0m\]\W$(__git_ps1 " (\[\e[36m\]%s\[\e[0m\])")\[\e[31m\]]\[\e[0m\]\$ '

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment