本地版本初始化
1.git status //查看当前状态
2.ls 进入版本仓库
3. git init //版本库初始化
4. git add //添加到暂存区
5. git commit -m “主页ok” 报错 how are you 这个时候
caosir@Lenovo-PC MINGW64 /e/android_studio/Code (master)
$ git config user.name "caosir520"
caosir@Lenovo-PC MINGW64 /e/android_studio/Code (master)
$ git config user.email "421070718@qq.com"
6.$ git commit -m “主页ok” //提交并且加注释
7.$ git log //查看 commit的日志
GIt网上版本库
1创建一个版本库, 名字和app一样。
2.…or push an existing repository from the command line
git remote add origin https://github.com/caosir520/Our.git
git remote -v
git push -u origin master