GIT使用日记- 分支

以下内容适用于初始化完成git仓库

拿自己容易误读的点来说 

切换分支

git checkout  <分支名称> 

例:git checkout master

建立分支

git checkout -b <name>

例:git checkout -b issue#1

删除分支

git branch -d <name>

git branch -d issue#1 

注:若远程仓库该分支还没有merge 则会出现提示,若执意删除 使用 git branch -D <name>

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章