obsidian/笔记文件/2.笔记/git修改远端地址 重定向.md
2025-03-26 07:22:59 +08:00

19 lines
574 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#杂七杂八常识
输入 `git remote set-url ` 相关指令即可,后面还有 分支名、远端地址其中main主干的分支名默认是 `origin`
代码样式:
``` bash
git remote set-url origin http://127.0.0.1:3000/qiuqiu/testlalala.git
```
![[Pasted image 20250322140658.png]]
然后再可以通过查看git远端地址确认是否已经重定向修改成功参考[[git查看远端地址]]
实例测试git obsidian笔记修改远端 重定向
``` bash
git remote set-url origin http://39.108.75.32:5002/qiuqiu/obsidian.git
```