Comments on: How to Delete Commit History in Github https://tecadmin.net/delete-commit-history-in-github/ How to guide for System Administrator's and Developers Tue, 20 Dec 2022 08:36:13 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Zack https://tecadmin.net/delete-commit-history-in-github/#comment-63956 Wed, 20 Apr 2022 21:54:19 +0000 https://tecadmin.net/?p=11604#comment-63956 Exactly what I needed!
Thank you!

]]>
By: Felipe Sodre https://tecadmin.net/delete-commit-history-in-github/#comment-51967 Thu, 11 Jun 2020 18:22:31 +0000 https://tecadmin.net/?p=11604#comment-51967 Dear RAHUL, I have a branch on upstream that has already a open Pull Request with some comments.

What happens to my PR if I execute this procedure you suggest. Does my PR get closed?

Is there any other way that I can just remove my commits comments history, keeping just the latest one on my java files.

I had to commit several versions as a test. I don’t want the next developer get the file with several comments as testing.

Thanks.

]]>
By: Larik https://tecadmin.net/delete-commit-history-in-github/#comment-45195 Sun, 01 Mar 2020 11:26:31 +0000 https://tecadmin.net/?p=11604#comment-45195 It’s helped, thanks!
They say: “… please clear history and try again…”
But they didn’t make any way to clear that from UI, what is the point…

]]>
By: Akash https://tecadmin.net/delete-commit-history-in-github/#comment-43415 Sat, 26 Oct 2019 23:15:35 +0000 https://tecadmin.net/?p=11604#comment-43415 Great! Thanks 🙂

]]>
By: Horatio https://tecadmin.net/delete-commit-history-in-github/#comment-42097 Sun, 11 Aug 2019 05:32:30 +0000 https://tecadmin.net/?p=11604#comment-42097 Salute!

]]>
By: João https://tecadmin.net/delete-commit-history-in-github/#comment-41775 Fri, 19 Jul 2019 02:08:44 +0000 https://tecadmin.net/?p=11604#comment-41775 Thank you!

]]>
By: rosen https://tecadmin.net/delete-commit-history-in-github/#comment-41740 Tue, 16 Jul 2019 11:00:43 +0000 https://tecadmin.net/?p=11604#comment-41740 i love you. i couldnt remove sensitive data from the repo because i burried it with more commits and nothing else worked until i found this <3

]]>
By: Ondřej https://tecadmin.net/delete-commit-history-in-github/#comment-41272 Mon, 10 Jun 2019 10:14:20 +0000 https://tecadmin.net/?p=11604#comment-41272 Thanks, this helped. However, the remote server still keeps the old commits and they may be accessible, e.g. from web GUI or by commit hash. This is a problem if you accidentally commited a password.

The fix is to ssh into the bare repo and run `git gc –prune=now`. That should drop them.

]]>
By: Grateful https://tecadmin.net/delete-commit-history-in-github/#comment-41222 Fri, 07 Jun 2019 07:46:14 +0000 https://tecadmin.net/?p=11604#comment-41222 Works like a charm. Thank you!

]]>
By: Jack https://tecadmin.net/delete-commit-history-in-github/#comment-41148 Sat, 01 Jun 2019 23:04:03 +0000 https://tecadmin.net/?p=11604#comment-41148 Thanks!

]]>