I made a branch in my repo that includes files that aren't supposed to be checked in (they have passwords). Therefore, I went where the code is hosted (like GitHub) and deleted that branch. Then I deleted it locally.
However, when I ran git reflog
, I see it has the branch still there. Then I saw I was still able to check it out!
My question is:
- How can I delete the branch permanently such that there is no history of it whatsoever.
- Can others see the branch I just deleted or just me on my local machine when I ran
git reflog
?