git创建新分支、推送到新分支、删除本地分支精简版

对着背影说爱祢 提交于 2019-12-16 08:54:07

git branch -a 

查看所有分支

git checkout -b test01

创建本地test01分支

git push --set-upstream origin test01

把本地test01分支推送到远程

 

once created a local branch by accident:

git branch -d [branch_name]

  to delete it.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!