当前位置:网站首页>How to switch remote server in gerrit
How to switch remote server in gerrit
2022-07-31 15:49:00 【Code Dragon-】
When the remote server you are using needs to be replaced, that is, the code is transferred to the new gerrit server, is it necessary to re-key and re-pull the code?In fact, it is not necessary. It is too much trouble to re-pull a code. You can use the command to switch the remote server.
Here is an example of switching from 192.168.8.67 to 192.168.1.80 remote server.
First step, check your current remote server address:
Use git remote -v to view the current URL:
After using the git remote -v command, you can see that the current remote server is 192.168.8.67, which is the remote server address to which local changes will be submitted when you use the git push command.
Step 2:
Use git remote set-url origin
Use git remout set-url origin
Step 3:
In the second step, the remote server has been successfully switched, and the code can be pulled normally by using the git pull command.
边栏推荐
- ASP.NET Core 产生连续 Guid
- The normal form of the database (first normal form, second normal form, third normal form, BCNF normal form) "recommended collection"
- Qt实战案例(54)——利用QPixmap设计图片透明度
- 苹果官网样式调整 结账时产品图片“巨大化”
- C language "the third is" upgrade (mode selection + AI chess)
- 贪吃蛇项目(简单)
- .NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的
- 对话庄表伟:开源第一课
- update data table update
- t-sne 数据可视化网络中的部分参数+
猜你喜欢
随机推荐
Public Key Retrieval is not allowed error solution when DBeaver connects to MySQL 8.x
form 表单提交后,使页面不跳转[通俗易懂]
Replication Latency Case (3) - Monotonic Read
Oracle动态注册非1521端口
tensorflow2.0 cnn(layerwise)
Codeforces Round #796 (Div. 2) (A-D)
使用 GraphiQL 可视化 GraphQL 架构
C语言-函数
button控件的使用
json到底是什么(c# json)
多主复制的适用场景(2)-需离线操作的客户端和协作编辑
The use of button controls
org.apache.jasperException(could not initialize class org)
工程流体力学复习
【MySQL】Mysql范式及外键作用
工程水文学名词解释总结
Unity中实现点选RenderTexture中的3D模型
双边滤波加速「建议收藏」
全新宝马3系上市,安全、舒适一个不落
Synchronized and volatile interview brief summary