Skip to content

Instantly share code, notes, and snippets.

@xecutioner
Last active August 29, 2015 14:01
Show Gist options
  • Save xecutioner/279b38650cf837e0655b to your computer and use it in GitHub Desktop.
Save xecutioner/279b38650cf837e0655b to your computer and use it in GitHub Desktop.
useful git gists
# GIT REMOVE FILE FROM ALL BRANCHES
git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch contents.sql' \
--prune-empty --tag-name-filter cat -- --all
# GIT REMOTE BRANCH FETCH AND CREATE
git checkout --track origin/daves_branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment