Konstantin Vlasenko

An engineer is someone who can make for a dollar what any fool could make for two. – Alan Kay

Tag Archives: git

Completely remove files from Git repository

git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <FOLDER/FILE>' HEAD
rm -rf .git/refs/original/ && git reflog expire --all &&  git gc --aggressive --prune

Git tips

What is Git
Why Git [Read the history – 46:00]
Git reference site
Pro Git book
O’Reilly Webcast: The Fringes of Git (Rebase technique by examples)

HOWTO: arc diff with the particular commit in the past

  • Create the branch via hash
    git branch preview 63c3ec098181b81e44a018e153de481c8ed5df7b
  • Switch to new branch
    git checkout preview
  • Checkout needed files from the original branch
    git checkout master test.js
  • Commit changes
    git commit -am "for arc diff"
  • arc diff --preview
  • Now you can delete this branch
Follow

Get every new post delivered to your Inbox.