Guest User

Untitled

a guest
Apr 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. GIT
  2. =====================
  3. ### **Basic configuration**
  4. ```
  5. git config --global user.name "[Your Name]"
  6. git config --global user.email "[Your Email]"
  7. git config --global color.ui auto
  8. ```
  9. #### Optional
  10. Change default editor for your chousen editor.
  11. ```
  12. git config --global core.editor "[Your Editor] [--wait if is not a console editor like atom or sublime]"
  13.  
  14. ```
  15. Install conflic resolutions tool
  16. ```
  17. sudo add-apt-repository ppa:eugenesan/ppa
  18. sudo apt-get update
  19. sudo apt-get install meld -y
  20.  
  21. git config --global merge.tool meld
  22. git config --global diff.guitool meld
  23.  
  24. ```
  25. ### SSH Key
  26. Configure your ssh key on your local user for identificate easily at moment of push your changes.
  27. ```
  28. ssh-keygen -t rsa -b 4096 -C "[Your email]"
  29. Enter a file in which to save the key (/home/you/.ssh/id_rsa): [Press enter]
  30. Enter passphrase (empty for no passphrase): [Type a passphrase or not]
  31. Enter same passphrase again: [Type passphrase again]
  32.  
  33. #It will generate two files on '/home/user/.ssh/id_rsa.pub' and '/home/user/.ssh/id_rsa'
  34. #Copy the content of .pub file
  35.  
  36. cat ~/.ssh/id_rsa.pub
  37.  
  38. #Paste this code on your account for authorize the access
  39. ```
Add Comment
Please, Sign In to add comment