Guest User

Untitled

a guest
Oct 20th, 2017
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. Create a repo.
  2. Make sure there is at least one file in it (even just the README)
  3. Generate ssh key:
  4. ```
  5. ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
  6. ```
  7. Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings.
  8. Test SSH key:
  9. ```
  10. ssh -T git@github.com
  11. clone the repo:
  12. git clone git://github.com/username/your-repository
  13. ```
  14. Now cd to your git clone folder and do:
  15. ```
  16. git remote set-url origin git@github.com:username/your-repository.git
  17. ```
  18. Now try editing a file (try the README) and then do:
  19.  
  20. ```
  21. git add -A
  22. git commit -am "my update msg"
  23. git push
  24. ```
Add Comment
Please, Sign In to add comment