Loading

Paste #pss04mpkm

  1. # pretty colors, yay!
  2. [color]
  3.     diff = auto
  4.     status = auto
  5.     branch = auto
  6.  
  7. # useful aliases
  8. [alias]
  9.     ap = add -p
  10.     dc = diff --cached
  11.     st = status
  12.     ci = commit
  13.     cia = commit -v -a
  14.     cp = cherry-pick
  15.     br = branch
  16.     co = checkout
  17.     df = diff
  18.     dfs = diff --staged
  19.     l = log
  20.     ll = log -p
  21.     reha = reset --hard
  22.  
  23.     # A log of commits indicating where various branches are currently pointing.
  24.     lga = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative --branches --remotes
  25.  
  26.     # "git weburl" prints the URL of the github project page for repositories hosted on github.
  27.     weburl = !git config --get remote.origin.url | sed -e 's/git:\\/\\/github.com/https:\\/\\/github.com/' -e 's/git@github.com:/https:\\/\\/github.com\\//' -e 's/\\.git$//'
  28.     # "git browse" opens the github project page of this repository in the browser.
  29.     browse = !open `git weburl`
  30.  
  31. # misc settings
  32. [core]
  33.     excludesfile = ~/.gitignore
  34.  
  35.     # set your prefered editor
  36.     editor = nano
  37.  
  38.     # OS X users only!
  39.     # askpass = /PATH/TO/YOUR/HOME/FOLDER/git-password
  40.  
  41.     # Highlight whitespace errors in git diff:
  42.     whitespace = tabwidth=4,tab-in-indent,cr-at-eol,trailing-space
  43.  
  44. # GitHub credentials
  45. #[github]
  46. #    user = YOUR GITHUB USERNAME
  47. #    token = YOUR GITHUB TOKEN
  48.  
  49. # OS X users only!
  50. #[credential]
  51. #    helper = osxkeychain
  52.  
  53. # configure git to always add '--rebase' to git pull, to maintain nicer history
  54. # read more about it at http://gitready.com/advanced/2009/02/11/pull-with-rebase.html
  55. # you can override this with the '--no-rebase' switch
  56.  
  57. [push]
  58.     default = current
  59. [merge]
  60.     tool = opendiff

Comments