首页 > Web开发 > 详细

git上传代码到osc@git

时间:2016-04-14 17:39:03      阅读:125      评论:0      收藏:0      [点我收藏+]

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

git上传代码到osc@git

原文:http://www.cnblogs.com/lushiju/p/5391689.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!