EKsumic's Blog

let today = new Beginning();

Click the left button to use the catalog.

OR

GitBash關於Remote的操作

添加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使用手冊

This article was last edited at 2024-07-07 05:16:51

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.