当前位置:网站首页>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.
边栏推荐
- Destruction order of thread_local variables
- Visualize GraphQL schemas with GraphiQL
- mongo进入报错
- The use of button controls
- Browser's built-in color picker
- ASP.NET Core generates continuous Guid
- R language test whether the sample conforms to normality (test whether the sample comes from a normally distributed population): shapiro.test function tests whether the sample conforms to the normal d
- 工程水文学复习资料
- 使用 GraphiQL 可视化 GraphQL 架构
- Foreign media right, apple on May be true in inventory
猜你喜欢
随机推荐
Qt实战案例(54)——利用QPixmap设计图片透明度
Implement anti-shake and throttling functions
What is the difference between BI software in the domestic market?
单细胞测序流程(单细胞rna测序)
11 pinia使用
form 表单提交后,使页面不跳转[通俗易懂]
mysql black window ~ build database and build table
多主复制下处理写冲突(4)-多主复制拓扑
【MySQL】Mysql范式及外键作用
"Autumn Recruitment Series" MySQL Interview Core 25 Questions (with answers)
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
Implementing click on the 3D model in RenderTexture in Unity
Linux查看redis版本(查看mongodb版本)
Implementing DDD based on ABP
C language "the third is" upgrade (mode selection + AI chess)
AVH Deployment Practice (1) | Deploying the Flying Paddle Model on Arm Virtual Hardware
i.MX6ULL驱动开发 | 33 - NXP原厂网络设备驱动浅读(LAN8720 PHY)
Linux check redis version (check mongodb version)
Matlab matrix basic operations (definition, operation)
Oracle动态注册非1521端口