Skip to content

Instantly share code, notes, and snippets.

@capsulecorplab
Last active December 1, 2022 21:14
Show Gist options
  • Select an option

  • Save capsulecorplab/401ba2fe0857a328f2a626adbf078cc6 to your computer and use it in GitHub Desktop.

Select an option

Save capsulecorplab/401ba2fe0857a328f2a626adbf078cc6 to your computer and use it in GitHub Desktop.

Revisions

  1. capsulecorplab revised this gist Dec 1, 2022. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -61,3 +61,7 @@
    pf = push -f
    psu = push --set-upstream
    psuo = push --set-upstream origin

    [core]
    editor = /usr/bin/vim
    autocrlf = true
  2. capsulecorplab revised this gist Dec 1, 2022. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion .gitconfig
    Original file line number Diff line number Diff line change
    @@ -51,10 +51,13 @@
    rs = reset --s

    s = status
    sh = show
    shn = show --name-only

    h = show HEAD
    hn = show HEAD --name-only

    p = push
    pf = push -f
    psu = push --set-upstream
    psuo = push --set-upstream origin
    psuo = push --set-upstream origin
  3. capsulecorplab created this gist Mar 16, 2022.
    60 changes: 60 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,60 @@
    [alias]
    a = add
    ap = add -p

    b = branch -v
    bd = branch -d -v
    bD = branch -D -v

    cl = clone
    clr = clone --recurse-submodules

    c = commit --verbose
    ca = commit --amend --verbose
    can = commit --amend --verbose --no-edit


    co = checkout
    cob = checkout -b
    com = checkout main
    cod = checkout dev

    cp = cherry-pick
    cpc = cherry-pick --continue
    cpa = cherry-pick --abort

    d = diff
    ds = diff --stat
    dc = diff --cached

    f = fetch --prune
    fo = fetch origin --prune
    fa = fetch --all --prune

    i = init

    jk = reset --soft HEAD~

    l = log
    lo = log --oneline
    la = log --graph --all
    dag = log --graph --oneline --all

    rb = rebase
    rbc = rebase --continue
    rba = rebase --abort
    rbi = rebase --interactive

    rv = remote -v

    rh = reset --h
    rs = reset --s

    s = status

    h = show HEAD

    p = push
    pf = push -f
    psu = push --set-upstream
    psuo = push --set-upstream origin