精讚部落::使用GIT和GITHUB

精讚部落::使用GIT和GITHUB

加一個遠端 github repos. 名稱可以自取,此例myTT

$ git remote add myTT https://github.com/AxerZ/TT.git

關於遠端的資源

可用下面的指令查看遠端的 git 資源

$ git remote -v

HeartTT ssh://axer@163.17.38.84/~/git/heart.git/ (fetch)

HeartTT ssh://axer@163.17.38.84/~/git/heart.git/ (push)

myTT https://github.com/AxerZ/TT.git (fetch)

myTT https://github.com/AxerZ/TT.git (push)

如果打錯了相要刪除,只要remove 就好,例如remove myTT

$ git remote rm myTT

via 精讚部落::使用GIT和GITHUB.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s