Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I had uploaded <em>all</em> of my files to my first github project, including some settings files with secret keys. I had to go back and remove all the versions that were included before I added my <code>.gitignore</code> file, and deleted all settings files from my project's cache.</p> <p><a href="http://davitenio.wordpress.com/2008/10/11/make-a-comit-the-new-root-of-its-branch/" rel="nofollow noreferrer">How I did this</a>:</p> <p><code>gedit ./.git/logs/HEAD</code></p> <p>Find the 40-character SHA hash of the 'new root' you wish to delete everything prior to. Copy it to the clipboard and close it. (You may or may not use <code>gedit</code>, a default text editor for linux).</p> <p><code>$&gt; gedit ./.git/info/grafts</code></p> <p>Paste the SHA here. Go to your project's directory.</p> <p><code>$&gt; cd ../..</code></p> <p><code>$&gt; git filter-branch</code></p> <p>Force the push to the master, otherwise it will block your attempt to erase your history.</p> <p><code>$&gt; git push --force -u origin master</code></p> <p>Delete your <code>grafts</code> file.</p> <p><code>$&gt; rm ./.git/info/grafts</code></p> <h1>NEVERMIND</h1> <p>Well, my answer is only half the battle. My public activity RSS feed still has links to all the diffs that detail the very information I wanted to remove. Apparently, <a href="https://webapps.stackexchange.com/questions/20738/how-do-i-delete-entries-from-my-github-activity-feed">there is no way to delete this</a>, but you should probably read <a href="http://help.github.com/remove-sensitive-data/" rel="nofollow noreferrer"><em>Change your Password</em></a>, and update any sensitive data you may have accidentally uploaded.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload