git branch -D #23255
-
Hello, I am new to Git , and I would like to learn Git command. I would like to know what does git branch -D mean ? I assume that git branch create a branch in git; for example, git branch test creating a test branch. But I do not know what does the parameter -D mean in git branch -D . Could someone please help ? Thanks alot. Also what does git tags -D mean ? I assume that git tags test meaning assign name of test to the branch that I just created from teh previous command such as git branch test. But i do not know what does git tags -D mean ? Thanks for all of the helps. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @minhdtran, Thank you for being here! Taking a look at your command:
I believe the |
Beta Was this translation helpful? Give feedback.
Hi @minhdtran,
Thank you for being here! Taking a look at your command:
I believe the
-D
on that command force delete the tags. Here is a handy guide about deleting branches, that might be useful: https://www.freecodecamp.org/news/how-to-delete-a-git-branch-both-locally-and-remotely/