“cara menghapus cabang di git” Kode Jawaban

cara menghapus cabang git cli

# Delete remote branch
git push origin -d remote_branch_name

# Delete local branch
git branch -d local_branch_name

# Force delete if getting merge error
git branch -D local_branch_name
Tofufu

cara menghapus cabang di git

// Delete local branch

git branch -d <local_branch_name>


// Delete remote branch

git push origin --delete <remote_branch_name>
Sore Sardine

Hapus Cabang Git

# delete branch locally
git branch -d <branchName>
#example 
git branch -d test
# you add ,commit but not merged and can not delete the branch , use this one
#just use capital D 
git branch -D <branchName> 
#example 
git branch -D test
polyglot orca

Jawaban yang mirip dengan “cara menghapus cabang di git”

Pertanyaan yang mirip dengan “cara menghapus cabang di git”

Lebih banyak jawaban terkait untuk “cara menghapus cabang di git” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya