刘月林 | 修改 GitHub 远程地址

2018-08-23  本文已影响0人  刘月林Yuelin_MELB

步骤

  1. 查看远程地址
    $git remote -v
git remote -v
origin  https://github.com/liuyuelintop/twittter.git (fetch)
origin  https://github.com/liuyuelintop/twittter.git (push)
  1. 修改远程地址
    使用remote set-url命令进行修改
git remote set-url origin https://github.com/liuyuelintop/welcome.git
  1. 再次查看远程地址
    $git remote -v
git remote -v
origin  https://github.com/liuyuelintop/welcome.git (fetch)
origin  https://github.com/liuyuelintop/welcome.git (push)

刘月林
写于湖北荆门
2018/08/23

上一篇下一篇

猜你喜欢

热点阅读