git誤刪遠(yuǎn)程分支 如何刪除一個(gè)git遠(yuǎn)程分支?
如何刪除一個(gè)git遠(yuǎn)程分支?在本地倉庫執(zhí)行g(shù)it push origin:{remote branch name}表示將本地空分支推送到遠(yuǎn)程分支,相當(dāng)于刪除遠(yuǎn)程分支。答案來自強(qiáng)制刪除GitHub中遠(yuǎn)程
如何刪除一個(gè)git遠(yuǎn)程分支?
在本地倉庫執(zhí)行g(shù)it push origin:{remote branch name}
表示將本地空分支推送到遠(yuǎn)程分支,相當(dāng)于刪除遠(yuǎn)程分支。
答案來自
強(qiáng)制刪除GitHub中遠(yuǎn)程分支的詳細(xì)步驟如下:
1:1。Git diff比較文件差異
2。Git分支列出所有分支
3。Git日志顯示提交記錄
2:分支
1。Git分支名create branch
2。Git checkout branch name switch branch
3。提交
1。Git添加2。Git commit將文件從stage提交到branch
4:刪除
1。Git RM不僅從stage中刪除文件名,而且還刪除物理文件