使用Git
首先在GitHub新建一个仓库 
配置git环境 若Android Studio中的git环境配置有问题 需要在setting配置 可以点击右侧的Test按钮测试是不是配置成功
若没有下载git的可以通过http://git-scm.com/download/win下载后再配置
登陆github 


git remote add origin https://github.com/[username]/[project_name].git

托管项目
然后commit
提交信息必须填写,不然无法提交
最后push 
最后项目就会出现在github上了
写在最后
这只是Git的简单用法,其中还有好多乐趣,具体参考:
廖老师的Git教程
Pro Git的中文版
原文:http://www.cnblogs.com/yimi-yangguang/p/6143486.html