Guest User

Untitled

a guest
Nov 19th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Install git
  2.  
  3. $ sudo apt-get install git-core
  4.  
  5. User settings
  6.  
  7. $ git config --global user.name "Dwayne R. Crooks"
  8. $ git config --global user.email "me@dwaynecrooks.com"
  9.  
  10. Core settings
  11.  
  12. $ git config --global core.editor nano
  13. $ git config --global core.excludesfile $HOME/.gitignore_global
  14.  
  15. Other settings
  16.  
  17. $ git config --global color.ui true
  18.  
  19. Useful aliases
  20.  
  21. Add to `.gitconfig`
  22.  
  23. [alias]
  24. co = checkout
  25. ci = commit
  26. st = status
  27. br = branch
  28. hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
  29. type = cat-file -t
  30. dump = cat-file -p
  31.  
  32. Add to `.bashrc`
  33.  
  34. alias gs='git status '
  35. alias ga='git add '
  36. alias gb='git branch '
  37. alias gc='git commit '
  38. alias gd='git diff '
  39. alias go='git checkout '
Add Comment
Please, Sign In to add comment