David Underhill » git: forever remove files or folders from history
october 2011 by faunzy
#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0
fi
# make sure we're at the root of git repo
if [ ! -d .git ]; then
echo "Error: must run this script from the root of a git repository"
exit 1
fi
# remove all paths passed as arguments from the history of the repo
files=$@
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch $files" HEAD
# remove the temporary history git-filter-branch otherwise leaves behind for a long time
rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune
files
git
history
howto
repository
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
if [ $# -eq 0 ]; then
exit 0
fi
# make sure we're at the root of git repo
if [ ! -d .git ]; then
echo "Error: must run this script from the root of a git repository"
exit 1
fi
# remove all paths passed as arguments from the history of the repo
files=$@
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch $files" HEAD
# remove the temporary history git-filter-branch otherwise leaves behind for a long time
rm -rf .git/refs/original/ && git reflog expire --all && git gc --aggressive --prune
october 2011 by faunzy
Using Git to manage a web site
july 2011 by faunzy
GIT_WORK_TREE=/var/www/www.example.org git checkout -f
deployment
git
howto
web
webdev
july 2011 by faunzy
A List Apart: Articles: Flexible Layouts with CSS Positioning
june 2010 by faunzy
An article about flexible layouts
html
layout
design
development
tutorial
howto
web
css
webdesign
positioning
grids
june 2010 by faunzy
rectalogic: Virtualizing Mac OS X Leopard Client
may 2010 by faunzy
cd "/Library/Application Support/VMware Fusion/isoimages"
mkdir original
mv darwin.iso tools-key.pub *.sig original
sed "s/ServerVersion.plist/SystemVersion.plist/g" < original/darwin.iso > darwin.iso
openssl genrsa -out tools-priv.pem 2048
openssl rsa -in tools-priv.pem -pubout -out tools-key.pub
openssl dgst -sha1 -sign tools-priv.pem < darwin.iso > darwin.iso.sig
for A in *.iso ; do openssl dgst -sha1 -sign tools-priv.pem < $A > $A.sig ; done
exit
tutorial
vmware
fusion
mac
virtualization
howto
hacks
apple
osx
leopard
mkdir original
mv darwin.iso tools-key.pub *.sig original
sed "s/ServerVersion.plist/SystemVersion.plist/g" < original/darwin.iso > darwin.iso
openssl genrsa -out tools-priv.pem 2048
openssl rsa -in tools-priv.pem -pubout -out tools-key.pub
openssl dgst -sha1 -sign tools-priv.pem < darwin.iso > darwin.iso.sig
for A in *.iso ; do openssl dgst -sha1 -sign tools-priv.pem < $A > $A.sig ; done
exit
may 2010 by faunzy
Google Analytics for Facebook Fan Pages - PHP, Web and IT stuff
april 2010 by faunzy
Google Analytics for Facebook Fan Pages
google
googleanalytics
javascript
howto
traffic
analytics
facebook
marketing
seo
socialmedia
april 2010 by faunzy
Installing PostgreSQL on Snow Leopard 10.6 | Greg Benedict
march 2010 by faunzy
sudo env ARCHFLAGS="-arch x86_64" gem install pg
macosx
macports
install
rails
mac
howto
osx
snowleopard
postgresql
postgres
march 2010 by faunzy
Chapter 7. Advanced Topics
december 2009 by faunzy
svn propset svn:ignore -F .svnignore .
subversion
programming
svn
howto
file
software
development
december 2009 by faunzy
Hivelogic - Compiling MySQL on Snow Leopard
november 2009 by faunzy
-- --with-mysql-dir=/usr/local/mysql
compile
osx
mysql
tutorial
howto
reference
install
awesome
snowleopard
mac
macosx
november 2009 by faunzy
related tags
acl ⊕ airport ⊕ ajax ⊕ amazon ⊕ analytics ⊕ apache ⊕ api ⊕ apple ⊕ applescript ⊕ archival ⊕ art ⊕ article ⊕ assets ⊕ audio ⊕ authentication ⊕ automator ⊕ automount ⊕ autotest ⊕ awesome ⊕ backup ⊕ bash ⊕ bashrc ⊕ batch_rename ⊕ bdd ⊕ bestpractices ⊕ blog ⊕ blogging ⊕ book ⊕ books ⊕ boot ⊕ Bootable_OS_X ⊕ brightbox ⊕ browser ⊕ bsd ⊕ calendar ⊕ camera ⊕ cameras ⊕ capistrano ⊕ cd ⊕ certificate ⊕ cheat ⊕ cheatsheet ⊕ chroot ⊕ cisco ⊕ cli ⊕ client ⊕ cms ⊕ cocoa ⊕ code ⊕ coding ⊕ commands ⊕ comparison ⊕ compile ⊕ config ⊕ Console ⊕ conversion ⊕ convert ⊕ css ⊕ cucumber ⊕ cvs ⊕ database ⊕ datamapper ⊕ dd-wrt ⊕ debian ⊕ debug ⊕ debugger ⊕ debugging ⊕ del.icio.us ⊕ delicious ⊕ deployment ⊕ design ⊕ Dev ⊕ development ⊕ diff ⊕ digital ⊕ directory ⊕ diy ⊕ docs ⊕ documentation ⊕ dropbox ⊕ dvd ⊕ ebook ⊕ editor ⊕ education ⊕ emacs ⊕ email ⊕ embedded ⊕ encryption ⊕ ereader ⊕ example ⊕ extension ⊕ facebook ⊕ faq ⊕ file ⊕ files ⊕ film ⊕ filtering ⊕ firefox ⊕ firewall ⊕ flac ⊕ flash ⊕ flickr ⊕ forum ⊕ framework ⊕ freebsd ⊕ fusion ⊕ gallery ⊕ gem ⊕ gems ⊕ gis ⊕ git ⊕ github ⊕ gmail ⊕ google ⊕ googleanalytics ⊕ graphics ⊕ grids ⊕ gtd ⊕ guide ⊕ guides ⊕ hack ⊕ hacks ⊕ hardware ⊕ harmony ⊕ hints ⊕ history ⊕ holga ⊕ hosting ⊕ howto ⊖ html ⊕ ical ⊕ ike ⊕ illustration ⊕ illustrator ⊕ imap ⊕ inheritance ⊕ inspiration ⊕ install ⊕ instapaper ⊕ interface ⊕ internet ⊕ iphone ⊕ ipod ⊕ ipsec ⊕ ipsec-tools ⊕ irb ⊕ itunes ⊕ javascript ⊕ jquery ⊕ js ⊕ kame ⊕ key ⊕ keybindings ⊕ keyboard ⊕ kindle ⊕ lame ⊕ landscape ⊕ laptop ⊕ launchd ⊕ layout ⊕ learning ⊕ leopard ⊕ library ⊕ lifehacks ⊕ light ⊕ linksys ⊕ linux ⊕ lomo ⊕ lomography ⊕ mac ⊕ macbook ⊕ macintosh ⊕ macosx ⊕ macports ⊕ MacSites ⊕ mail ⊕ management ⊕ manual ⊕ map ⊕ mapping ⊕ maps ⊕ marketing ⊕ measurement ⊕ mediatemple ⊕ merb ⊕ merge ⊕ metrics ⊕ mobile ⊕ mock ⊕ mocks ⊕ moleskine ⊕ mongrel ⊕ mp3 ⊕ mt ⊕ music ⊕ mvc ⊕ mysql ⊕ network ⊕ networking ⊕ news ⊕ night ⊕ ogg ⊕ oop ⊕ openbsd ⊕ opensource ⊕ openssl ⊕ openvpn ⊕ organization ⊕ organize ⊕ orm ⊕ osx ⊕ outlook ⊕ outside-in ⊕ paper ⊕ paperclip ⊕ passenger ⊕ photo ⊕ photography ⊕ photos ⊕ photoshop ⊕ php ⊕ phusion ⊕ planner ⊕ plugin ⊕ plugins ⊕ positioning ⊕ postgres ⊕ postgresql ⊕ powerpoint ⊕ ppt ⊕ presentation ⊕ presentations ⊕ productivity ⊕ programming ⊕ prototype ⊕ radiant ⊕ rails ⊕ reference ⊕ regexp ⊕ remote ⊕ remotebuddy ⊕ repository ⊕ research ⊕ resources ⊕ ripping ⊕ router ⊕ routes ⊕ routing ⊕ rspec ⊕ rss ⊕ rsync ⊕ ruby ⊕ ruby-debug ⊕ rubygems ⊕ rubyonrails ⊕ s3 ⊕ samba ⊕ scm ⊕ screencapture ⊕ screencast ⊕ screenshot ⊕ script ⊕ scripts ⊕ search ⊕ searchlogic ⊕ security ⊕ seo ⊕ server ⊕ sharing ⊕ shell ⊕ shortcuts ⊕ slide ⊕ slides ⊕ smashingmagazine ⊕ smb ⊕ snowleopard ⊕ snow_leopard ⊕ socialmedia ⊕ soekris ⊕ software ⊕ ssh ⊕ ssl ⊕ statistics ⊕ storage ⊕ style ⊕ subversion ⊕ svn ⊕ svn+ssh ⊕ symlink ⊕ sync ⊕ sysadmin ⊕ system ⊕ tagging ⊕ tdd ⊕ technology ⊕ terminal ⊕ test ⊕ testing ⊕ textmate ⊕ theme ⊕ themes ⊕ tiger ⊕ tips ⊕ todo ⊕ tools ⊕ toycamera ⊕ traffic ⊕ training ⊕ troubleshooting ⊕ tumblr ⊕ tutoriais ⊕ tutorial ⊕ tutorials ⊕ ubuntu ⊕ unix ⊕ upload ⊕ usb ⊕ vcs ⊕ vector ⊕ versioncontrol ⊕ video ⊕ videos ⊕ vim ⊕ virtualization ⊕ vista ⊕ vmware ⊕ vpn ⊕ web ⊕ web2.0 ⊕ webdesign ⊕ webdev ⊕ webserver ⊕ wifi ⊕ wiki ⊕ windows ⊕ windows7 ⊕ wireless ⊕ wordpress ⊕ work ⊕ wrt54g ⊕ xbmc ⊕ xml ⊕ zentest ⊕Copy this bookmark: