delete git branch local and remote (刪除本地跟遠端 git branch)

剛剛不小心推錯 commit 到新的 branch 上面,因為只有這個 commit,就想說直接把 branch 給刪掉就好。

但是到 gitlab 上看 branch 還是存在於 remote 端。
回到 cli 下 git push 卻告訴我 Already up to date……

上網看了一下,要把 branch 推回 remote 端才行

搞定!




如果你覺得這篇文章不錯,歡迎打賞

BTH: 35QooNA82isrmQLmpEnqXpJoxeZmaPubPf

ETH:0x4cf61fea5EA842D202B85158d8b5e239C872De46

或是點選下方圖片贊助我一杯咖啡:

Leave a reply:

Your email address will not be published.

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料