一、步骤
1. git config --global user.name "用户名"
2. git config --global user.email "连接的email"
3. git init
4. git status
5. git checkout -b 分支名称
6. git add .
7.git commit -m "提交提示"
8. git remote add origin "仓库地址" =======添加远程版本库
9. git push -u origin 分支名称
10. git branch
二、图片展示
1.
8.
三、可能遇到的问题
1.查看用户名和连接的邮箱
git config user.name
git config user.email2.查看远程仓库地址
git remote -v
四、git remote命令
1. git remote -v ==========作用是显示所有远程仓库
origin是仓库的别名
git fetch ======从远程库获取最新版本到本地,不会自动merge
git push ===== 将本地库中的最新信息发送给远程库
2. git remote show xx ========作用是显示某个远程仓库的信息
xx是仓库的别名
3. git remote add "名字" "仓库地址" =====作用是添加远程版本库
名字===自己取得
4. git remote rm 名字 ===== 作用是 删除远程仓库
5.git remote rename old_name new_name =====作用是修改仓库名