0

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:

  1. How can I delete the branch permanently such that there is no history of it whatsoever.
  2. Can others see the branch I just deleted or just me on my local machine when I ran git reflog?
AskYous
  • 4,332
  • 9
  • 46
  • 82
  • https://stackoverflow.com/search?q=%5Bgit%5D+remove+sensitive+files – phd May 23 '19 at 16:48
  • Especially see these commands: `git reflog expire --expire=now --all && git gc --aggressive --prune=now` – phd May 23 '19 at 16:49
  • As for Github: delete the repo or contact GitHub support: https://stackoverflow.com/a/32840385/7976758 – phd May 23 '19 at 16:49

0 Answers0