Skip to content

Instantly share code, notes, and snippets.

View sanzaru's full-sized avatar

Martin Albrecht sanzaru

View GitHub Profile
@sanzaru
sanzaru / git-clearHistory
Created November 8, 2020 01:02 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- 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 git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@sanzaru
sanzaru / macos-disable-resize
Created May 31, 2024 15:13 — forked from olssonm/macos-disable-resize
Disable resizing of the macOS dock
defaults write com.apple.dock size-immutable -bool true; killall Dock