OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Removing commits from github, solution: cloning branch from previous commit + removal of "old" branch?

  • Thread starter Thread starter buks
  • Start date Start date
B

buks

Guest
I know that there were similar questions, but the answers that I've found does not answers fully my question. I am thinking about different solution than solutions suggested there.

I've published a code with "secret", by accident, on github.

I want to get rid of that commit. Solution that I am thinking about:

  1. create another branch from previous commit
  2. delete the old branch
  3. rename the branch name to the current

Could anything go wrong? 1-2 people might downloaded the repository/have reference to it, but I might tell them to connect with "fresh" branch. I am now the only person that is working actively with that repository.
<p>I know that there were similar questions, but the answers that I've found does not answers fully my question. I am thinking about different solution than solutions suggested there.</p>
<p>I've published a code with "secret", by accident, on github.</p>
<p>I want to get rid of that commit. Solution that I am thinking about:</p>
<ol>
<li>create another branch from previous commit</li>
<li>delete the old branch</li>
<li>rename the branch name to the current</li>
</ol>
<p>Could anything go wrong? 1-2 people might downloaded the repository/have reference to it, but I might tell them to connect with "fresh" branch. I am now the only person that is working actively with that repository.</p>
Continue reading...
 

Latest posts

Top