How to disable viewing or delete a commit ON SITE or in GitHub Desktop ? #61349
-
Select Topic AreaQuestion BodyI wanted to publish a repository, but the commits have my personal information in them, how do I disable picture preview or delete a commit ON SITE or in GitHub Desktop ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
If you want to publish a repository on GitHub, but the commits in the repository contain your personal information, you have a couple of options to address this issue. One option is to disable picture previews for the sensitive commits, and another option is to remove the sensitive commits entirely. Disable Picture Preview for Sensitive Commits: a. Clone the Repository: b. Remove the Images: c. Force Push the Changes: Delete the Sensitive Commits: a. Clone the Repository: b. Use Interactive Rebase:
c. Delete the Commits: d. Force Push the Changes:
Important Note: Before proceeding with any of the above steps, make sure to create a backup of your repository or work on a separate branch to avoid data loss. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
If you want to publish a repository on GitHub, but the commits in the repository contain your personal information, you have a couple of options to address this issue. One option is to disable picture previews for the sensitive commits, and another option is to remove the sensitive commits entirely.
Disable Picture Preview for Sensitive Commits:
GitHub doesn't have a built-in feature to disable picture previews for specific commits. However, you can follow these steps to remove the images from the commits and overwrite them:
a. Clone the Repository:
Using GitHub Desktop, clone the repository to your local machine.
b. Remove the Images:
Manually go through the sensitive commits and remove …