How to Git delete a branch?
I have learned when create a branch, Git will create a pointer point to a commit ID.
I create "test" branch based on "master" branch Code:
C1 <- C2 <- C3 <- master Code:
C1 <- C2 <- C3 <- C6 <- master Code:
$ git branch -d test I really don't know how to git delete "test" branch? Please explain for me. Thank so much! |
Use -D perhaps.
Code:
git branch -D test |
And, IIRC, even that is just another "commit." With Git, nothing ever truly goes away.
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 03:34 PM. |