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.
本文介绍如何使用Git进行分支管理,包括查看所有分支、创建及推送本地分支到远程仓库的方法,以及不小心创建了本地分支后的删除操作。
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.
1万+
1万+

被折叠的 条评论
为什么被折叠?
