-1

We use a git-repository to manage a project. It is stored on a gitlab server and several users use it. We only have 1 master branch and the commits look like this:

A (first commit) - B - C - D - ... - Z (most current commit)

We found out, we have quite sensitive information stored in the commits from B to D, which were taken out in E. How can we delete the commits B to D, like they never happened, so it is impossible to restore those?

  • No, the question is the same as mine, but people just dont answer the question, but always talk around it. Like the top-voted answer just says he should change the password, but not how to actually remove the commits. Its useless for me – zuhuziui88 May 25 '22 at 09:46
  • 2
    You mean you did what is described in the paragraphs following "here's how to fix it" and it didn't work out? – mkrieger1 May 25 '22 at 09:47
  • 2
    And presumably [this](https://stackoverflow.com/a/1338758) didn't work either? – mkrieger1 May 25 '22 at 09:52
  • 2
    also: first question suggested by @mkrieger1 contains a link to github's FAQ : https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository – LeGEC May 25 '22 at 10:17
  • 1
    If none of those work, either ask to reopen this question *and provide the details about what didn't work*, or ask a new question *and provide the details about what didn't work*. (Note that you may have a question about garbage-collecting commits on GitLab, but you haven't phrased it this way.) – torek May 25 '22 at 11:01

0 Answers0