[Feature Request] Ability to delete commits (because sensitive information) #5089

Closed
opened 2025-11-02 06:14:04 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @ghost on GitHub (Mar 20, 2020).

Sometimes it happens that you accidentally push some sensitive information to your git repository, like passwords or real name, etc.

On GitHub you can contact the support team and they can help you in deleting these private information and keep it without traces (it doesn't appear in commit history).

I suggest there should be a feature in Gitea so that an admin user can delete commits from both the Gitea database and the Git repository in the file system, meaning it would be just like if the commit wouldn't ever have been pushed in the first place.

Citation needed: Should the repository owner themselves be able to delete the commits?

Additionally, pull requests should also be deleteable.

Originally created by @ghost on GitHub (Mar 20, 2020). Sometimes it happens that you accidentally push some sensitive information to your git repository, like passwords or real name, etc. On GitHub you can contact the support team and they can help you in deleting these private information and keep it without traces (it doesn't appear in commit history). I suggest there should be a feature in Gitea so that an admin user can delete commits from both the Gitea database and the Git repository in the file system, meaning it would be just like if the commit wouldn't ever have been pushed in the first place. Citation needed: Should the repository owner themselves be able to delete the commits? Additionally, pull requests should also be deleteable.
GiteaMirror added the issue/stale label 2025-11-02 06:14:04 -06:00
Author
Owner

@lafriks commented on GitHub (Mar 20, 2020):

Most of the actions should be done by rewriting git history on client and then force pushing, same with PR

@lafriks commented on GitHub (Mar 20, 2020): Most of the actions should be done by rewriting git history on client and then force pushing, same with PR
Author
Owner

@stale[bot] commented on GitHub (May 19, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (May 19, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (Jun 3, 2020):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (Jun 3, 2020): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5089