git: 修改gitlab仓库提交地址

git: 修改gitlab仓库提交地址

右键git bash here

1、进入到项目my-project所在位置

2、查看当前项目远程仓库地址

3、修改远程仓库地址

4、再次查看新的远程仓库地址以确认修改成功

javascript 复制代码
cd /my-project
git remote -v  # 查看当前远程仓库地址
git remote set-url origin 新的GitLab仓库地址  # 修改远程仓库地址
git remote -v  # 再次查看新的远程仓库地址以确认修改成功

修改完第一次提交会弹出提示框让输入username和password

输入对应新地址账户的账号密码就可以了

相关推荐
司徒小夜5 小时前
处理git没做修改,但是文件显示变更的情况
git
m0_749317526 小时前
vscode里如何用git
ide·git·vscode
Hello.Reader6 小时前
Git 安装全攻略Linux、macOS、Windows 与源码编译
linux·git·macos
王景程7 小时前
SELinux是什么以及如何编写SELinux策略
git·github
Chuncheng's blog7 小时前
如何基于Mihomo Party http端口配置git与bash命令行代理
git·http·bash
Tom Boom8 小时前
Git常用命令完全指南:从入门到精通
大数据·git·elasticsearch·docker·自动化测试框架
不爱学英文的码字机器9 小时前
[Git] 文件删除
git
DZSpace10 小时前
git stash命令用法
git
Vowwwwwww11 小时前
GIT历史存在大文件的解决办法
前端·git·后端
@BreCaspian11 小时前
Git 推送失败解决教程——error: failed to push some refs to
大数据·git·elasticsearch