Guest User

Untitled

a guest
Aug 10th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. git remote add myorigin [email protected]:myname/oldrep.git
  2. git remote add testtest [email protected]:myname/oldrep.git
  3.  
  4. git remote rm origin
  5.  
  6. git remote rm upstream
  7.  
  8. git remote set-url origin [email protected]:username/projectname.git
  9.  
  10. git remote rm origin
  11.  
  12. [user]
  13. name = Uzumaki Naruto
  14.  
  15. [github]
  16. user = myname
  17. token = ff44ff8da195fee471eed6543b53f1ff
  18.  
  19. [remote "github"]
  20. url = [email protected]:myname/oldrep.git
  21. push = +refs/heads/*:refs/heads/*
  22. push = +refs/tags/*:refs/tags/*
  23.  
  24. git remote rm origin
  25. git remote add origin https://github.com/USERNAME/REPOSITORY.git
  26.  
  27. git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
  28.  
  29. git remote set-url origin [email protected]:USERNAME/REPOSITORY.git
  30.  
  31. git remote rename origin startpoint
  32. # Change remote name from 'origin' to 'startpoint'
  33.  
  34. git remote -v
  35.  
  36. git remote rm origin
  37.  
  38. cd /path/to/my/repo # If haven't done yet
  39. git remote add mynewrepo https://[email protected]/team-or-user-name/myproject.git
  40. git push -u mynewrepo master # To push changes for the first time
  41.  
  42. git remote add AppName https://[email protected]/somewhere/something.git
  43.  
  44. git remote rm origin
  45. git remote add origin [email protected]:username/myapp.git
  46.  
  47. git remote add origin [email protected]:myname/oldrep.git
  48.  
  49. git remote add neworigin [email protected]:myname/oldrep.git
Add Comment
Please, Sign In to add comment