Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. $ git remote -v
  2.  
  3. $ git remote add upstream https://github.com/foo/repo.git
  4.  
  5. $ git remote add upstream https://github.com/Foo/repos.git
  6.  
  7. $ git remote rm upstream
  8. $ git remote add upstream https://github.com/Foo/repos.git
  9.  
  10. Older (backwards-compatible) syntax:
  11. $ git remote rm upstream
  12. Newer syntax for newer git versions: (* see below)
  13. $ git remote remove upstream
  14.  
  15. Then do:
  16. $ git remote add upstream https://github.com/Foo/repos.git
  17.  
  18. $ git remote set-url upstream https://github.com/Foo/repos.git
  19.  
  20. ...
  21. [remote "upstream"]
  22. fetch = +refs/heads/*:refs/remotes/upstream/*
  23. url = https://github.com/foo/repos.git
  24. ...
  25.  
  26. Log message
  27.  
  28. remote: prefer subcommand name 'remove' to 'rm'
  29.  
  30. All remote subcommands are spelled out words except 'rm'. 'rm', being a
  31. popular UNIX command name, may mislead users that there are also 'ls' or
  32. 'mv'. Use 'remove' to fit with the rest of subcommands.
  33.  
  34. 'rm' is still supported and used in the test suite. It's just not
  35. widely advertised.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement