步骤如下:

1.点击头像-> your repositories(代码仓库)->  仓库列表选定目标仓库 -> clone or download,复制出url

android: SourceTree上传项目代码到Githubandroid: SourceTree上传项目代码到Github 

android: SourceTree上传项目代码到Github

2. sourceTree客户端设置图标 -> 账户 ,填写账户(选择github,basic,https,github用户名,github登陆密码)

android: SourceTree上传项目代码到Github

 

3.点击新建 -> 从URL克隆,本地创建一个空文件夹设为位置

4.克隆仓库完毕之后,把需要上传的项目所有文件,复制粘贴到仓库文件夹中(这是复制粘贴后的效果,notification是仓库文件夹,NotificationDemo是目标上传的项目)

android: SourceTree上传项目代码到Github

5. 然后AndroidStudio打开notification这个仓库代码,commit+push -> 对话框输入GitHub账号+登陆密码,log In

android: SourceTree上传项目代码到Github

android: SourceTree上传项目代码到Github

6. 上传成功 

android: SourceTree上传项目代码到Github

 

 

相关文章: