git 修改远程仓库地址

2019-08-05  本文已影响0人  羊驼626

命令行修改远程仓库地址

git remote set-url origin 远程仓库地址

修改配置文件

//  .git>config 文件

[core]
  repositoryformatversion = 0
  filemode = true
  logallrefupdates = true
  precomposeunicode = true

[remote "origin"]
  # 修改成新的仓库地址
  url = 远程仓库地址
  fetch = +refs/heads/*:refs/remotes/origin/*

[branch "master"]
  remote = origin
  merge = refs/heads/master
上一篇 下一篇

猜你喜欢

热点阅读