Github remote repository command reminder

remote repository

a . SSH settings: ssh-keygen -t rsa -C "bitsunlei@126.com"

b. create a new repository at GIthub.com

c. git remote add origin git@github.com:drsunlei/tsalearn.git

git remote add origin https://github.com/drsunlei/tsalearn.git

d. git push -u origin master

e. git push origin master

f. clone: git clone git@github.com:rouseguy/TimeSeriesAnalysiswithPython.git

g. check remote: git remote -v

and update remote address: git remote set-url origin new_address

h. or remove current local repository and connect to remote repository

git remote rm origin

git remote add origin git@gitee.com:bittsa/tsa.git

git remote -v

i. connecting to two remote repositories simultaneously

git remote add github git@github.com:drsunlei/tsa.git

git remote add gitee git@gitee.com:bittsa/tsa.git

git remote -v

git push github master

git push gitee master

 

Good references:

1. github tutorial: https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000

2. program repository: https://pan.baidu.com/s/1kU5OCOB?errno=0&errmsg=Auth%20Login%20Sucess&&bduss=&ssnerror=0&traceid=#list/path=%2Fpub

3. SSH assignment: http://my.phirobot.com/blog/2014-05-add_exist_keys_to_github.html

4. A cookbook: https://gitee.com/help/articles/4110#article-header9

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值