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