以前一直是从Github上down大神的代码,也该为开源社区做点贡献了,下面看图:
1)打开AndroidStudio的VCS菜单,找到import into VersionControl --> ShareProject Github

2)点shareProjectGithub:你会看到

如果你是第一次用androidStudio绑定github,那么这里会as会提示你输入github的用户名和密码。
3)点击share ,你将会看到下面的界面:

4)在这个界面,选择你要上传的文件,打勾,把不需要的文件,取消勾。然后写日志,最后点OK。
注意,这里可能会再次要求你填写github的用户名和密码,原因我也不晓得。
点OK之后,填了用户名和密码,安静地等待一会,等as提示commit successed,你就可以到你的github网站去看到你的源码啦。
网友评论