Skip to content

Instantly share code, notes, and snippets.

@ralph
Last active March 10, 2017 09:22
Show Gist options
  • Select an option

  • Save ralph/cc26e8b787924f7614a773aa36f71fdd to your computer and use it in GitHub Desktop.

Select an option

Save ralph/cc26e8b787924f7614a773aa36f71fdd to your computer and use it in GitHub Desktop.

Revisions

  1. ralph revised this gist Mar 10, 2017. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions git-aliases
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    [alias]
    # less typing, more winning:
    # less typing, more winning:
    aa = add --all --intent-to-add
    ap = add --patch
    br = branch
    @@ -10,16 +10,16 @@
    l = log -1
    rb = rebase
    st = status
    # looking at stuff:
    # looking at stuff:
    changelog = log --pretty=oneline
    lg = log --color --graph --pretty=format:'%Cred%h%Creset %G? -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
    # working with local branches:
    # working with local branches:
    commend = commit --amend --no-edit
    # working with remote repos:
    # working with remote repos:
    please = push --force-with-lease
    pushup = !git push --set-upstream origin $(git symbolic-ref --short HEAD)
    sync = !git pull --rebase && git push
    # stash on stereoids
    # stash on stereoids
    stsh = stash --keep-index
    staash = stash --include-untracked
    staaash = stash --all
  2. ralph created this gist Mar 10, 2017.
    25 changes: 25 additions & 0 deletions git-aliases
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    [alias]
    # less typing, more winning:
    aa = add --all --intent-to-add
    ap = add --patch
    br = branch
    ci = commit
    co = checkout
    cp = cherry-pick
    df = diff
    l = log -1
    rb = rebase
    st = status
    # looking at stuff:
    changelog = log --pretty=oneline
    lg = log --color --graph --pretty=format:'%Cred%h%Creset %G? -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
    # working with local branches:
    commend = commit --amend --no-edit
    # working with remote repos:
    please = push --force-with-lease
    pushup = !git push --set-upstream origin $(git symbolic-ref --short HEAD)
    sync = !git pull --rebase && git push
    # stash on stereoids
    stsh = stash --keep-index
    staash = stash --include-untracked
    staaash = stash --all