Skip to content

Instantly share code, notes, and snippets.

@christophior
Last active June 1, 2018 20:34
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 christophior/e010ad6777513863ceb7 to your computer and use it in GitHub Desktop.
Save christophior/e010ad6777513863ceb7 to your computer and use it in GitHub Desktop.
My .gitconfig
[alias]
st = status
br = branch
co = checkout
ci = commit
up = rebase
one = log --oneline --decorate
dif = git diff --word-diff
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
fall = fetch --all --prune
track = branch -u
tree = log --pretty=tformat:"%Cred%h%Creset%x09%Cgreen%an%Creset%x09%ad%x09%s" --date=short --graph --decorate
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
publish = subtree push --prefix
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[format]
pretty = format:%Cred%h%Creset - %Cgreen%an -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset
date = relative
@christophior
Copy link
Author

adding publish alias

with publish if we want to just publish our /dist folder to github pages we can just build the /dist folder and then do
git push dist origin gh-pages

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