Advertisement
Guest User

Untitled

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