当前位置:网站首页>gerrit中如何切换远程服务器
gerrit中如何切换远程服务器
2022-07-31 15:45:00 【码龙-】
当你使用的远程服务器要更换的时候,即代码转移到新的gerrit服务器上了,是否一定需要重新配密钥,且需要重新拉代码呢。其实大可不必,重新拉一份代码太大费周章了,使用命令切换远程服务器即可。
以下是一个从192.168.8.67切换到192.168.1.80远程服务器的例子。
首先第一步,查看你当前的远程服务器地址:
使用git remote -v查看当前URL:

使用git remote -v命令后 可以看出当前的远程服务器为192.168.8.67,即当你使用git push 命令的时候,本地改动会提交到的远程服务器地址。
第二步:
使用git remote set-url origin <URL>重新设置URL。

使用git remout set-url origin <URL>改了响应的地址之后,再使用git remoute -v 查看当前的远程服务器地址,可以发现已经切换到192.168.1.80了。
第三步:
在第二步中已经成功的切换了远程服务器,此时使用git pull 命令即可正常的拉取代码了。
边栏推荐
- RecyclerView的高效使用第一节
- 工程水文学复习资料
- 贪吃蛇项目(简单)
- After Grafana is installed, the web opens and reports an error
- ES6 类
- MySQL database operations
- 软件实现AT命令操作过程
- Ubuntu Topic 5: Setting a Static IP Address
- 小程序:matlab解微分方程「建议收藏」
- R language ggplot2 visualization: use the ggmapplot function of the ggpubr package to visualize the MA plot (MA-plot), the font.legend parameter and the font.main parameter to set the title and legend
猜你喜欢

Female service community product design

Internet banking stolen?This article tells you how to use online banking safely

WPF project - basic usage of controls entry, you must know XAML

The use of border controls
![[CUDA study notes] First acquaintance with CUDA](/img/a2/f322ebe9dc483028f68882ee2c866b.png)
[CUDA study notes] First acquaintance with CUDA

mysql黑窗口~建库建表

After Grafana is installed, the web opens and reports an error

Unity 之 图集属性详解和代码示例 -- 拓展一键自动打包图集工具

11 pinia使用

The use of button controls
随机推荐
Applicable scenario of multi-master replication (2) - client and collaborative editing that require offline operation
Unity 之 图集属性详解和代码示例 -- 拓展一键自动打包图集工具
全新宝马3系上市,安全、舒适一个不落
org.apache.jasperException(could not initialize class org)
tensorflow2.0 cnn(layerwise)
在资源管理类中提供对原始资源的访问——条款15
Linux check redis version (check mongodb version)
[Meetup Preview] OpenMLDB+OneFlow: Link feature engineering to model training to accelerate machine learning model development
AVH Deployment Practice (1) | Deploying the Flying Paddle Model on Arm Virtual Hardware
Kubernetes原理剖析与实战应用手册,太全了
自动化测试如何创造业务价值?
TRACE32 - SNOOPer-based variable logging
mysql black window ~ build database and build table
Destruction order of thread_local variables
做事软件开发-法的重要性所在以及合理结论的认识
RecyclerView的高效使用第一节
浏览器自带的拾色器
T - sne + data visualization parts of the network parameters
The use of button controls
R language ggplot2 visualization: use the ggboxplot function of the ggpubr package to visualize the grouped box plot, use the ggpar function to change the graphical parameters (caption, add, modify th