Why does git branch -a
Gerben Wierda
gerben.wierda at rna.nl
Sat Oct 23 10:17:35 UTC 2021
Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>
> On 23 Oct 2021, at 12:13, Henning Hraban Ramm <hraban at fiee.net> wrote:
>
> Hi Gerben!
>
>> Am 23.10.2021 um 11:58 schrieb Gerben Wierda via macports-users <macports-users at lists.macports.org>:
>>
>> # remotes:
>> # upstream: github/macports/macports-ports is the original macports.org repo in github
>> # origin: github/gctwnl/macports-ports is my FORK of github/macports/macports-ports on github
>> # local:
>> # ~/MacPortsDev/macports-ports is the local CLONE of github/gctwnl/macports-ports
>>
>> albus:macports-ports sysbh$ git branch -a
>> dovecot-2.3.16
>> * master
>> upstream
>> remotes/origin/HEAD -> origin/master
>> remotes/origin/dovecot-2.3.16
>> remotes/origin/master
>> remotes/origin/multiple-unbounds
>> remotes/upstream/boost_1.72.0_update
>> remotes/upstream/dar
>> remotes/upstream/kencu-py-sphinxcontrib-svg2pdfconverter
>> remotes/upstream/master
>> remotes/upstream/py38-reproject
>> remotes/upstream/wireshark3-3-0-5
>>
>> But I do not fully understand the remotes/origin ones. Specifically: remotes/origin/multiple-unbounds. I did some work on unbound as well (enabling to run multiple parallel unbound resolvers from launchd) and this has been pulled into the main repository. When that had happened, I deleted my branch. Apparently I forgot to do something because it still shows up in remotes/origin. Why, though? What did I forget to do?
>
> Origin is your fork of upstream, and when you deleted your local branch, you apparently didn’t delete the same branch on origin.
> Each repository is independent.
>
Yes, I’m reading this now. And I’ve also just read that to explicitly delete the remote branch I need to do
git push origin -d remote-branch-name
So, somewhat surprisingly (for me at least) is that to remove an origin branch I need the ‘git push’ command.
G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20211023/4734fbd5/attachment.htm>
More information about the macports-users
mailing list