GitApp commit history remove #178431
Answered
by
zanilzanzan
joniengr
asked this question in
New to GitHub
-
|
Hello, I am using GitApp. How can I remove the commit history at the web ? |
Beta Was this translation helpful? Give feedback.
Answered by
zanilzanzan
Nov 4, 2025
Replies: 2 comments 2 replies
-
|
Any comment on this please ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I am wondering about the simplest option you mentioned in 3rd step. Is that possible to delete the repository from the Git web and latter create a new repository with the same name on the Git web and push the current code from local drive to remote Git on web ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep, that’s definitely possible — and it’s actually the easiest way to completely remove the commit history.
You can just delete the old repository from the web (under Settings → Danger Zone → Delete this repository), then create a new one with the same name. Once the old repo is gone, GitHub will let you reuse the name right away.
After that, in your local project folder, just point your code to the new remote and push it up again:
That’ll give you a completely clean repo — same name, same code, but with all the old commits gone.