添加origin
git remote add origin https://github.com/你的用戶名/你的倉庫名.git
這裏的origin是自己命名的。
git remote -v
查看你添加的remote鏈接。
修改origin
git remote set-url origin https://新的URL/新的倉庫.git
如果你需要分別設置fetch 和 push URL
git remote set-url origin --fetch https://新的URL/新的倉庫.git
git remote set-url origin --push https://新的URL/新的倉庫.git
刪除origin
git remote remove origin
→上一篇:GitBash_在本地創建一個Git倉庫
→下一篇:GitBash關於Branch的操作
→返回目錄:GitBash使用手冊
Today's comments have reached the limit. If you want to comment, please wait until tomorrow (UTC-Time).
There is 16h08m32s left until you can comment.