Skip to content

Instantly share code, notes, and snippets.

View gmaghera's full-sized avatar

Gabor Maghera gmaghera

  • Rivian
  • Elk Grove, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gmaghera on github.
  • I am gmaghera (https://keybase.io/gmaghera) on keybase.
  • I have a public key ASCP5X_6lGgcE_3NOi8tJEtATVvSXdyYOn24G1DJYivKxwo

To claim this, I am signing this object:

@gmaghera
gmaghera / # vim - 2016-03-12_18-18-46.txt
Created March 13, 2016 02:20
vim on x86_64-linux - Homebrew build logs
Homebrew build logs for vim on x86_64-linux
Build date: 2016-03-12 18:18:46
#!/bin/bash
file=$1
test -z $file && echo "file required." 1>&2 && exit 1
git filter-branch -f --index-filter "git rm -r --cached $file --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all
git ignore $file
git add .gitignore
git commit -m "Add $file to .gitignore"