git 常用的操作

在本地创建分支:

git checkout -b '本地分支名称'

将本地分支推送到远程
 

git push --set-upstream origin jichukuangjia 

或者git branch --set-upstream-to=origin/remote_branch  your_branch

origin/remote_branch是你本地分支对应的远程分支;your_branch是你当前的本地分支

微信公众号:jingfeng18 免费学习领取最新的前端学习资源
原文地址:https://www.cnblogs.com/qianduanshiping/p/11826852.html