Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4592600
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:33:43+00:00 2026-05-21T22:33:43+00:00

I created a Gist on GitHub and I saw information I don’t want anyone

  • 0

I created a Gist on GitHub and I saw information I don’t want anyone to see.
I updated the file since, but everybody can still access the old revision of the file.

Except deleting the Gist, is there a way to delete that particular revision definitely?

I saw that I’m not the only one having that kind of problem (Git: delete a single remote revision) but I didn’t manage to remove the revision.
The process indicated here seems to help remove some files. I want to remove the whole revision.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T22:33:44+00:00Added an answer on May 21, 2026 at 10:33 pm

    Github has a help page about removing sensitive data:

    http://help.github.com/removing-sensitive-data/

    As gists are just git repositories, you should be able to locally clone your gist, do the clean-up there and do a forced push to overwrite the github version with the cleaned repo.

    Yes, after thinking about it: If <commit> is the commit you want to “remove”, do

     git rebase -i <commit>^
    

    mark the line for <commit> as edit, save and quit.

    git will set up the working directory to the state after you comitted <commit>. Fix the file, use git add and git commit --amend to fix the commit. Then do git rebase --continue. If the only thing, the next commit did, was to remove the sensitive data, it will probably be automatically dropped because it doesn’t contain any changes after the now-amended commit.

    Then, do a git push -f to force the update (because it is now non-fast-forward, meaning it changes already published git history).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a simple 'require' mechanism ( https://gist.github.com/1031869 ), in which the included script
https://gist.github.com/2017706 The HTML file at the gist above will successfully load the data from
Is there a way I can remove a gist on GitHub? Created a gist
https://gist.github.com/2414323 Sometimes, you already know the result of a computation, but your interface requires
I created one file named br_states.rb in lib/ in the my rails 3 project,
http://gist.github.com/172341 ( stackoverflow was breaking the formatting ) In the following case method name
I have created a small app to try and accomplish this but I am
I'm using MongoMapper, Authlogic and these codes too, https://gist.github.com/444888/e8b28196c4f4452a06b89d566a6a245eae1e9d92 . I'm having trouble when
I wrote this script https://gist.github.com/1313611 to ease my installs for rvm. The whole script
I've been using this gist to send an email after deployment but I'd like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.