I love git
Kent Fredric
kentfredric at gmail.com
Sun Oct 28 10:59:11 GMT 2012
On 28 October 2012 12:32, David Flynn <davidf at woaf.net> wrote:
> * David Cantrell (david at cantrell.org.uk) wrote:
>>
>> Now, my question - can I delete the branch, while still leaving the tag
>> in place?
>
>
> Yes, branches (as are tags) are just pointers to commits. As long as
> a commit is reachable via some pointer, it won't be GC'd.
>
> ..david
You can even survive accidentally deleting a branch or tag most of the
time, because there's always the "reflog", which contains a list of
pointers to commits , and this reflog is only periodically trimmed.
Yet another reason to love git.
--
Kent
More information about the london.pm
mailing list