git上传代码到osc@git

1.get an account

2.get a ssh-key

3.git setting

git config --global user.name "...."

git config --global user.email ....

4. "cd" a directory

5.git init

6."touch" README.md

7.git add .

8.git commit -m "lvtao.net“

9.git remote add origin https://git.oschina.net/jiaai/portal.git

10.git push origin master
修改配置了请

git remote rm origin
然后再执行

git remote add origin http://git.oschina.net/whaon
git push origin master

 

原文:http://www.lvtao.net/tool/268.html

posted @ 2016-04-14 16:44  专属天使5677  阅读(137)  评论(0编辑  收藏  举报