github配置和git学习

参考:http://www.eoeandroid.com/thread-272837-1-1.html

http://blog.csdn.net/hcbbt/article/details/11651229

1.添加ssh-key 折腾很久就是没有用命令把内容复制好,按照官网教程还是靠谱呀 https://help.github.com/articles/generating-ssh-keys/

2.配置git中用户信息

git config --global user.name "your name"  
git config --global user.email "your_email@youremail.com" 

3.在github建库,然后git clone 库

4.提交、上传

git add README
git commit -m "first commit"
git push origin master  

  

posted @ 2015-03-29 11:53  yo胡yo  阅读(127)  评论(0编辑  收藏  举报