Skip to content

Instantly share code, notes, and snippets.

@f-karagoz
Forked from DuaelFr/.gitconfig
Created February 1, 2023 23:34
Show Gist options
  • Select an option

  • Save f-karagoz/1e3f3685e19c6e62fb15209910a8b66e to your computer and use it in GitHub Desktop.

Select an option

Save f-karagoz/1e3f3685e19c6e62fb15209910a8b66e to your computer and use it in GitHub Desktop.

Revisions

  1. @DuaelFr DuaelFr revised this gist Aug 28, 2015. 2 changed files with 42 additions and 6 deletions.
    29 changes: 23 additions & 6 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,14 @@
    [alias]
    a = add
    aa = add -A
    ac = "!f() { curl $@ | git apply --index; }; f"
    ac3 = "!f() { curl $@ | git apply -3 --index; }; f"
    amend = commit --amend -C HEAD
    ap = add -p
    app = apply --index
    br = branch
    cb = checkout -b
    cc = !git rh core && git co core && git clean -fd core
    ci = commit
    cim = commit -m
    cl = clone
    @@ -14,30 +18,43 @@
    dh = diff HEAD
    dic = diff --cached
    go = checkout
    pom = push origin master
    ol = log --oneline
    p = format-patch --stdout
    pg = "!f() { push origin $1:refs/for/$2; }; f"
    pl = pull
    plom = pull origin master
    pom = push origin master
    pomp = push origin master:preprod
    poml = push origin master:prod
    poa = push origin --all
    rb = rebase
    rh = reset HEAD
    sl = stash list
    sp = stash pop
    ss = stash save
    st = status -s
    st = status

    ignore = update-index --assume-unchanged
    unignore = update-index --no-assume-unchanged
    ignored = !git ls-files -v | grep '^h'

    who = shortlog -sne
    graph = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an$
    graph = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
    [color]
    ui = true
    [core]
    autocrlf = true
    excludesfile = ~/.gitignore_global
    autocrlf = false
    safecrlf = false
    ignorecase = false
    excludesfile = ~/.gitignore
    [branch]
    autosetuprebase = always
    [diff]
    renames = copies
    algorithm = patience
    algorithm = patience
    [push]
    default = simple
    [merge "theirs"]
    driver = true
    [diff "nodiff"]
    command = /bin/true
    19 changes: 19 additions & 0 deletions .gitignore_global
    Original file line number Diff line number Diff line change
    @@ -16,12 +16,28 @@
    .Spotlight-V100
    .Trashes
    ehthumbs.db

    ### Windows junk files
    [Tt]humbs.db
    *.lnk

    ### Patch/diff artifacts.
    *.patch
    *.diff
    *.orig
    *.rej
    interdiff*.txt

    ### Other SCM
    .svn

    ### emacs artifacts.
    *~
    \#*\#

    ### VI swap file
    *.swp

    ### phpStorm
    .idea

    @@ -32,3 +48,6 @@ ehthumbs.db

    ### Netbeans
    nbproject

    ## Sass Maps
    *.css.map
  2. @DuaelFr DuaelFr revised this gist Mar 13, 2014. 2 changed files with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -34,6 +34,7 @@
    ui = true
    [core]
    autocrlf = true
    excludesfile = ~/.gitignore_global
    ignorecase = false
    [branch]
    autosetuprebase = always
    File renamed without changes.
  3. @DuaelFr DuaelFr revised this gist Mar 13, 2014. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -4,11 +4,21 @@
    *.swp
    *.out
    *.patch
    *.log
    *.sql
    *.sqlite

    ### OS junk files
    .DS_Store
    .DS_Store?
    *.DS_Store
    ._*
    .Spotlight-V100
    .Trashes
    ehthumbs.db
    [Tt]humbs.db


    ### Other SCM
    .svn

  4. @DuaelFr DuaelFr revised this gist Mar 13, 2014. 1 changed file with 10 additions and 4 deletions.
    14 changes: 10 additions & 4 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -1,22 +1,28 @@
    [alias]
    amend = commit --amend -C HEAD
    a = add
    aa = add -A
    amend = commit --amend -C HEAD
    ap = add -p
    br = branch
    cb = checkout -b
    ci = commit
    cim = commit -m
    cl = clone
    co = checkout
    go = checkout
    cp = cherry-pick
    df = diff
    dic = diff --cached
    dh = diff HEAD
    dic = diff --cached
    go = checkout
    pom = push origin master
    plom = pull origin master
    poa = push origin --all
    rb = rebase
    rh = reset HEAD
    st = status
    sl = stash list
    sp = stash pop
    ss = stash save
    st = status -s

    ignore = update-index --assume-unchanged
    unignore = update-index --no-assume-unchanged
  5. @DuaelFr DuaelFr revised this gist Mar 13, 2014. 1 changed file with 2 additions and 7 deletions.
    9 changes: 2 additions & 7 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,6 @@
    a = add
    aa = add -A
    ap = add -p
    ar = !git add -A . && git reset HEAD .
    br = branch
    cb = checkout -b
    ci = commit
    @@ -24,18 +23,14 @@
    ignored = !git ls-files -v | grep '^h'

    who = shortlog -sne
    graph = log --pretty=oneline --abbrev-commit --graph
    graph = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an$
    [color]
    ui = true
    [core]
    autocrlf = true
    ignorecase = false
    excludesfile = ~/.gitignore
    [branch]
    autosetuprebase = always
    [diff]
    renames = copies
    algorithm = patience
    [user]
    name = Your name here
    email = your@mail.com
    algorithm = patience
  6. @DuaelFr DuaelFr revised this gist Jan 20, 2014. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -1,24 +1,24 @@
    # Generic files to ignore
    ### Generic files to ignore
    *~
    *.lock
    *.swp
    *.out
    *.patch

    # OS junk files
    ### OS junk files
    *.DS_Store
    [Tt]humbs.db

    # Other SCM
    ### Other SCM
    .svn

    # phpStorm
    ### phpStorm
    .idea

    # Eclipse based
    ### Eclipse based
    .buildpath
    .settings
    .project

    # Netbeans
    ### Netbeans
    nbproject
  7. @DuaelFr DuaelFr revised this gist Jan 20, 2014. 2 changed files with 29 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion .gitconfig
    Original file line number Diff line number Diff line change
    @@ -30,8 +30,12 @@
    [core]
    autocrlf = true
    ignorecase = false
    excludesfile = ~/.gitignore
    [branch]
    autosetuprebase = always
    [diff]
    renames = copies
    algorithm = patience
    algorithm = patience
    [user]
    name = Your name here
    email = your@mail.com
    24 changes: 24 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # Generic files to ignore
    *~
    *.lock
    *.swp
    *.out
    *.patch

    # OS junk files
    *.DS_Store
    [Tt]humbs.db

    # Other SCM
    .svn

    # phpStorm
    .idea

    # Eclipse based
    .buildpath
    .settings
    .project

    # Netbeans
    nbproject
  8. @DuaelFr DuaelFr revised this gist Sep 19, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion .gitconfig
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@
    a = add
    aa = add -A
    ap = add -p
    ar = !git add -A . && git reset HEAD .
    br = branch
    cb = checkout -b
    ci = commit
    @@ -33,4 +34,4 @@
    autosetuprebase = always
    [diff]
    renames = copies
    algorithm = patience
    algorithm = patience
  9. @DuaelFr DuaelFr created this gist May 28, 2013.
    36 changes: 36 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    [alias]
    amend = commit --amend -C HEAD
    a = add
    aa = add -A
    ap = add -p
    br = branch
    cb = checkout -b
    ci = commit
    cim = commit -m
    co = checkout
    go = checkout
    df = diff
    dic = diff --cached
    dh = diff HEAD
    pom = push origin master
    plom = pull origin master
    poa = push origin --all
    rh = reset HEAD
    st = status

    ignore = update-index --assume-unchanged
    unignore = update-index --no-assume-unchanged
    ignored = !git ls-files -v | grep '^h'

    who = shortlog -sne
    graph = log --pretty=oneline --abbrev-commit --graph
    [color]
    ui = true
    [core]
    autocrlf = true
    ignorecase = false
    [branch]
    autosetuprebase = always
    [diff]
    renames = copies
    algorithm = patience