Skip to content

Instantly share code, notes, and snippets.

@fractalspace
Forked from mbbx6spp/.gitconfig
Created September 27, 2012 23:53
Show Gist options
  • Save fractalspace/3797162 to your computer and use it in GitHub Desktop.
Save fractalspace/3797162 to your computer and use it in GitHub Desktop.

Revisions

  1. @mbbx6spp mbbx6spp revised this gist Jul 22, 2011. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -69,6 +69,8 @@
    search = "log --pretty=short -S"
    # short log
    shlog = "log --oneline --decorate"
    # snap RPEO
    snap = "clone --depth 1"
    # show status, keep same as svn command I used most frequently
    st = "status --porcelain"
    # another alias for status that some scripts might use
  2. @mbbx6spp mbbx6spp revised this gist Apr 20, 2011. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -89,3 +89,11 @@
    whci = "cherry -v"
    # prints out the tags a commit is a part of
    whtag = "name-rev --name-only"
    [rerere]
    enabled = 1
    [merge]
    tool = gvimdiff
    [url "https://github.com/"]
    insteadOf = "gh:"
    [url "[email protected]:"]
    insteadOf = "git@gh:"
  3. @mbbx6spp mbbx6spp revised this gist Feb 25, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .gitconfig
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@
    [status]
    color = auto
    [branch]
    autosetuprebase = always
    autosetuprebase = always
    [alias]
    co = "checkout"
    ci = "commit"
  4. @mbbx6spp mbbx6spp revised this gist Feb 23, 2011. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions .tigrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    set show-author = abbreviated
    set show-date = relative
    set show-rev-graph = yes
    set show-refs = yes
    set show-line-numbers = yes
    set line-number-interval = 5
    set tab-size = 2
    set commit-encoding = "UTF-8"
  5. @mbbx6spp mbbx6spp revised this gist Feb 12, 2011. 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
    @@ -65,6 +65,8 @@
    osssync = !git osspull && git osspush
    # show last 15 log entries
    recentlog = "log -n 15"
    # search alias
    search = "log --pretty=short -S"
    # short log
    shlog = "log --oneline --decorate"
    # show status, keep same as svn command I used most frequently
    @@ -77,6 +79,8 @@
    spush = !git svn dcommit
    # tracking push
    tpush = "push -u"
    # pull & update submodules at once - assumed you are on tracking local branch
    up = !git pull && git submodule update
    # word diff
    wdiff = "diff --word-diff"
    # prints out the branches a commit is on
  6. @mbbx6spp mbbx6spp revised this gist Oct 19, 2010. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -39,6 +39,8 @@
    lsrem = "remote"
    # list all tags, to keep commands consistent, e.g. git lstag
    lstag = "tag -l"
    # list unmerged branches
    lsunmerged = "branch --no-merged"
    # create a new tag based on specified commit
    mktag = "tag -a"
    # remove existing tag by name
  7. @mbbx6spp mbbx6spp created this gist Jul 25, 2010.
    85 changes: 85 additions & 0 deletions .gitconfig
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,85 @@
    # Migrating my old .gitconfig blog post from 2007 to here so I can update it easier.
    # Original URL:
    # http://geek.susanpotter.net/2007/11/my-gitconfig.html
    [user]
    name = Susan Potter # make sure you change this
    email = [email protected] # make sure you change this
    [color]
    diff = auto
    status = auto
    branch = auto
    [diff]
    rename = copy
    color = auto
    [apply]
    whitespace = strip
    [pager]
    color = true
    [status]
    color = auto
    [branch]
    autosetuprebase = always
    [alias]
    co = "checkout"
    ci = "commit"
    ciall = "commit -a -v"
    unmerge = "reset --hard ORIG_HEAD"
    lsbr = "branch -a" # list all branches, even remote ones
    mkbr = "branch" # create branch if you specify a branch name after it, e.g. git mkbr upgrading_rails
    # remove branch named after it, e.g. git rmbr upgrading_rails
    rmbr = "branch -d"
    # rename branch from one name to another
    mvbr = "branch -m"
    #
    track = "branch --track"
    log = "log -p"
    lol = "log --graph --decorate --pretty=oneline --abbrev-commit"
    lola = "log --graph --decorate --pretty=oneline --abbrev-commit --all"
    # list remote repositories
    lsrem = "remote"
    # list all tags, to keep commands consistent, e.g. git lstag
    lstag = "tag -l"
    # create a new tag based on specified commit
    mktag = "tag -a"
    # remove existing tag by name
    rmtag = "tag -d"
    # rename tag from one name to another
    mvtag = "tag -m"
    # create new remote repository for project
    mkrem = "remote add"
    # initialize all submodules
    modinit = "submodule init"
    # update all submodules
    modup = "submodule update"
    # show status of all submodules
    modst = "submodule status"
    # add new submodule, i.e. git modadd module-name url
    modadd = "submodule add"
    # push local committed changes to rubyforge and origin (usually GitHub)
    osspush = !git push rubyforge master && git push origin master
    # pull changes from rubyforge and origin (usually GitHub)
    osspull = !git pull rubyforge master && git pull origin master
    # sync (pull then push) from rubyforge and origin (usually GitHub)
    osssync = !git osspull && git osspush
    # show last 15 log entries
    recentlog = "log -n 15"
    # short log
    shlog = "log --oneline --decorate"
    # show status, keep same as svn command I used most frequently
    st = "status --porcelain"
    # another alias for status that some scripts might use
    stat = "status --porcelain"
    # fetch and rebase from svn repository
    spull = !git svn fetch && git svn rebase
    # push keeping each local commit as atomic.
    spush = !git svn dcommit
    # tracking push
    tpush = "push -u"
    # word diff
    wdiff = "diff --word-diff"
    # prints out the branches a commit is on
    whbr = "branch -a --contains"
    # prints commits from a branch are already present upstream
    whci = "cherry -v"
    # prints out the tags a commit is a part of
    whtag = "name-rev --name-only"