1.确定Git已安装
鼠标点击右键,存在Git GUI here/Git Bash here 条目,Git已经安装好了。
2.配置Git的用户信息
xiaowaer@DESKTOP-CEPBMO3 MINGW64 ~/Desktop
$ git config --global user.name "xiaowaer"
xiaowaer@DESKTOP-CEPBMO3 MINGW64 ~/Desktop
$ git config --global user.email "xiaowaer@aliyun.com"
xiaowaer@DESKTOP-CEPBMO3 MINGW64 ~/Desktop
$ git config --global --list
user.name=xiaowaer
user.email=xiaowaer@aliyun.com
#这是给当前用户配置,就是你登陆window系统的用户。
3.创建项目文件
用IDE创建一个项目,并且进入项目的路径。
4.创建代码仓库
xiaowaer@DESKTOP-CEPBMO3 MINGW64 /d/prefessional/Avanced/application_development/android/AndroidStudioProjects/andriod_basic
$ git init
Initialized empty Git repository in D:/prefessional/Avanced/application_development/android/AndroidStudioProjects/andriod_basic/.git/