Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.18 KB | None | 0 0
  1. Contribuir con un repositorio externo
  2. -------------------------------------
  3.  
  4. # mkdir .ssh
  5. # cd .ssh
  6. # ssh-keygen
  7. > Copy to Settings Profile your public ssh key
  8. # ssh -T git@github.com //Test connection
  9.  
  10. -----------------------------------------------
  11.  
  12. # git clone git@github.com:imansilla/canawa.git
  13. # git remote -v // Check the "origin" named repository
  14.  
  15. /*
  16.     origin  git@github.com:imansilla/canawa.git (fetch)
  17.     origin  git@github.com:imansilla/canawa.git (push)
  18. */
  19.  
  20. # git remote add upstream git@github.com:germix/canawa.git // Add remote from original repository in your forked repository
  21. # git remote -v
  22.  
  23. /*
  24. origin  git@github.com:imansilla/canawa.git (fetch)
  25. origin  git@github.com:imansilla/canawa.git (push)
  26. upstream    git@github.com:germix/canawa.git (fetch)
  27. upstream    git@github.com:germix/canawa.git (push)
  28. */
  29.  
  30. # git pull upstream master // Updating your fork from original repository to keep up with their changes:
  31. # git checkout -b <branch_name> //Create Branch and move there
  32. > Create-Delete-Modify your files
  33. # git add * //Add the content
  34. # git commit -m "comment your changes" //Create a commentary
  35. # git push origin <branch_name>
  36. # git branch -d <branch_name>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement