工作小记录

window终止vscode终端用 control + c ,mac也是control + c

先创建自己的本地分支操作:
git checkout -b dev-fhm 创建自己的本地分支
git branch 查看分支
git pull origin dev 把代码从dev pull下来
这时候你就在自己创建的本地分支上了
与远程自己分支关联
git init
git remote add origin 远程master地址 目的是和远程仓库建立连接。
git add .
git commit
git push -u origin master 将代码推送到远程master分支
git push origin master : 远程分支名

posted @ 2021-05-13 15:58  前端出发者  阅读(39)  评论(0)    收藏  举报