811 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			811 B
		
	
	
	
	
	
	
	
title, localeTitle
| title | localeTitle | 
|---|---|
| Change the Url of a Remote Repository | 更改远程存储库的URL | 
git remote set-url命令更改现有的远程存储库URL。
此命令有两个参数:
- 
现有的远程名称。例如,起源或上游是两种常见的选择。 
- 
远程的新URL。例如, https://github.com/USERNAME/OTHERREPOSITORY.git
因此,要更改远程存储库的URL,您可以执行以下操作:
- 查看现有的远程存储库:
git remote -v
- 更改远程存储库的URL:
git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
- 您可以通过执行以下操作来验证新的远程存储库:
git remote -v
有关更多信息,请查看此github文章。