xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
$ git remote -v
origin git@git.xxx.com:xxx/xxx.git (fetch)
origin git@git.xxx.com:xxx/xxx.git (push)
xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
$ git remote rm origin
xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
$ git remote add origin http://git.xxx.com/xxx/xxx.git
xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
$ git remote -v
origin http://git.xxx.com/xxx/xxx.git (fetch)
origin http://git.xxx.com/xxx/xxx.git (push)
xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
$ git pull origin master
From http://git.xxx.com/xxx/xxx
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
Already up to date.
网友评论