git - 设置远程 url 不更改为 https
问题描述
我正在尝试将我的远程 URL 从更改git@github.com:BuddyBob/Py_Programs.git
为**https://**github.com/user/repo2.git
.
所以我做到了
git remote set-url origin https://github.com/BuddyBob/Py_Programs.git
和
git remote -v
但似乎没有任何改变
origin git@github.com:BuddyBob/Py_Programs.git (fetch)
origin git@github.com:BuddyBob/Py_Programs.git (push)
我究竟做错了什么?
解决方案
够搞笑的。我做了一些深入研究我的 github 配置。
我意识到在我拥有的文件中的某个地方。这可能是我的问题的原因。
[url "git@github.com:"]
insteadOf = https://github.com/
所以我把它们换了。你知道什么!
我只是跑
git remote set-url origin https://github.com/BuddyBob/Py_Programs.git
和
git remote -v
我明白了
origin https://github.com/BuddyBob/Py_Programs.git (fetch)
origin https://github.com/BuddyBob/Py_Programs.git (push)
推荐阅读
- mongodb - 在 Mac 上的 ZSH shell 中运行 mongod 并获取命令未找到
- keras - Coremltools:使最简单的卷积模型工作的错误
- pandas - 'Series' 对象是可变的,因此它们不能在尝试对列求和并且数据类型为浮点数时进行散列
- c - 链表显示分段错误错误
- java - 如何使用java返回xml文件的图像数据
- php - PHP字符串比较到一个txt
- python - .loc 删除行而不是定位 Python Pandas
- c - 在 C 中的相同代码中生成两个 RSA 密钥
- mysql - 从 information_schema 数据库访问 user_privileges 表所需的基本权限是什么
- python - 更改路由器网络的子网地址