20250416 Flashcards

1
Q

How do you delete a local Git branch safely?

A

Use git branch -d branch_name to delete a local branch only if it has been merged.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command forces deletion of a local Git branch even if it’s not merged?

A

Use git branch -D branch_name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you delete a branch from the remote repository?

A

Use git push origin --delete branch_name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly