File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -504,20 +504,26 @@ git merge bug1 指令用於合併 ( bug1分支 ) 指定分支到目前分支 ( m
504504
505505當然不是每次合併都能很順利的出現 Fast-forward,很多時候會出現衝突 CONFLICT 。
506506
507- 如果順利合併 ( merge ) 完成後,就可以刪除 bug1 分支:
507+ 如果順利合併 ( merge ) 完成後,就可以刪除 (本機) bug1 分支:
508508
509509``` cmd
510510git branch -d dev
511511```
512512
513513![ alt tag] ( https://i.imgur.com/LmKKWxR.jpg )
514514
515- 如果要丟掉一個沒有被合併過的分支,可以使用 git branch -D 分支名稱 強行刪除。
515+ 如果要丟掉一個沒有被合併過的分支,可以使用 git branch -D 分支名稱 強行刪除 (本機) 。
516516
517517``` cmd
518518git branch -D dev
519519```
520520
521+ 那如果今天要刪除 remote 端的 branch 該怎麼辦呢:question :
522+
523+ ``` cmd
524+ git push origin --delete {remote_branch}
525+ ```
526+
521527補充,git branch 也可以修改名稱,而且 commit id 是不會改變的,使用方法也很簡單,
522528
523529可參考 git-branch [ 文件] ( https://git-scm.com/docs/git-branch#git-branch--m ) ,使用方法如下,
You can’t perform that action at this time.
0 commit comments