Skip to content

Instantly share code, notes, and snippets.


Christian Petersson Issen007

View GitHub Profile
Issen007 /
Last active Dec 3, 2019 — forked from yumminhuang/
Python script to check apt-get updates
#!/usr/bin/env python
import apt
import apt_pkg
from time import strftime
import os
import subprocess
import sys
Issen007 / git-clearHistory
Created Nov 3, 2017 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
View git-clearHistory
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin<YOUR ACCOUNT>/<YOUR REPOS>.git
You can’t perform that action at this time.