git github android-studio 各种使用,最详细,最新

导读

  • android studio中git、github配置
  • android studio上传整个项目
  • android studio更新
  • 使用git下载github项目
  • github下载慢解决

需要理解:
github ≠ git
Android studio提交git成功 ≠ 提交github成功

各软件版本

  1. android-studio 3.5.1
  2. Git-2.24.1.2-64-bit:下载地址
  3. github账号:官网
    git github android-studio 各种使用,最详细,最新
    git github android-studio 各种使用,最详细,最新

Git安装

改了安装路径,其他都是一直下一步
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新

配置

  1. android-studio中github配置
    git github android-studio 各种使用,最详细,最新
    git github android-studio 各种使用,最详细,最新
  2. 登录成功
    git github android-studio 各种使用,最详细,最新
  3. android-studio 中git程序配置
    git github android-studio 各种使用,最详细,最新

android-studio上传本地项目到github

git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
这个时候就可以在github上面看到自己托管的代码了,假如github上面没有文件,请执行下图步骤
同步代码:下图
git github android-studio 各种使用,最详细,最新

android-studio 提交代码

git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
此时提交git后,代码并没有同步github,需要将git的代码推到github,请执行上面图:同步代码

android-studio更新代码

git github android-studio 各种使用,最详细,最新

git 下载github代码到文件夹中

git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新
可能出现下载超时,需要手动修改host文件具体操作

修改提交作者

android studio 右下角,单击Git:master
git github android-studio 各种使用,最详细,最新
git github android-studio 各种使用,最详细,最新

可能遗漏

git dos窗口 会弹出输入账号密码
android studio也可能需要输入账号密码
github需要创建用户相关信息,需要在github建全相关个人资料