Skip to content

Instantly share code, notes, and snippets.

@RicardoR
Forked from mathiasverraes/.bashrc
Last active April 16, 2016 17:38
Show Gist options
  • Save RicardoR/58616b1243d4da50e8b5d21e6469efb5 to your computer and use it in GitHub Desktop.
Save RicardoR/58616b1243d4da50e8b5d21e6469efb5 to your computer and use it in GitHub Desktop.

Revisions

  1. RicardoR revised this gist Apr 16, 2016. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -1,16 +1,18 @@
    [alias]
    st = status
    ci = commit
    br = branch
    ci = commit
    co = checkout
    cp = cherry-pick
    df = diff
    ds = diff --staged
    lg = log -p
    lol = log --graph --decorate --pretty=oneline --abbrev-commit
    lola = log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local
    ls = ls-files
    st = status
    stu = status –untracked=no
    unstage = reset HEAD

    # Show files ignored by git:
    ign = ls-files -o -i --exclude-standard

  2. @thomasvm thomasvm created this gist Nov 3, 2011.
    6 changes: 6 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #! /bin/sh
    alias gs="git status"
    alias gc="git commit"
    alias gr="git checkout"
    alias ga="git add"
    alias gl="git lola"
    18 changes: 18 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    [alias]
    st = status
    ci = commit
    br = branch
    co = checkout
    df = diff
    ds = diff --staged
    lg = log -p
    lol = log --graph --decorate --pretty=oneline --abbrev-commit
    lola = log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local
    ls = ls-files
    unstage = reset HEAD

    # Show files ignored by git:
    ign = ls-files -o -i --exclude-standard

    [core]
    whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol