下载git
登录账户
试图用直接拉去代码地址的方式唤起登录页面,可惜失败了!!
git clone https://xxx.com/xxx.git

正确方式:在地址中加入你在项目中的用户名,就成功唤起登录页面
git clone https://guochenrui@xxx.com/xxx.git
下载分支内容
登录成功!会自动下载主分支的内容。但是咱们要指定分支。
通过 -b 分支名称 就可以指定分支下载了
git clone -b dev https://guochenrui@xxx.com/xxx.git
向分支提交新代码
修改好代码,进行提交!
第一,将代码添加到git 暂存区
git add .
warning: in the working copy of 'src/api/api.js', LF will be replaced by CRLF the next time Git touches it
我这边报错了,没有报错直接下一步!输入下面命令
解决办法:git config --global core.autocrlf true
第二,添加修改描述
git commit -m "修改内容描述"
第三,提交代码
git push
默认提交主分支,提交指定分支
git push origin 分支名称