Skip to content

Instantly share code, notes, and snippets.

@forelabs
Created September 25, 2019 08:41

Revisions

  1. forelabs created this gist Sep 25, 2019.
    22 changes: 22 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    [push]
    default = tracking
    [branch]
    autosetuprebase = always
    [alias]
    c = commit
    u = pull --rebase
    p = push
    dev = checkout development
    new = checkout -b
    co = checkout
    pb = push -u origin HEAD
    pf = push --force-with-lease
    ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
    hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
    [credential]
    helper = cache --timeout=3600
    [core]
    autocrlf = input
    excludesfile = ~/.gitignore_global
    [url "git@github.com:"]
    insteadOf = https://github.com/