git

Undoing and Recovering Git Commit

by shaiekh on May 8, 2012

Following best explanation on undoing and recovering git commit is copied from StackOverFlow. Hats off to kyralessa. Undoing a commit is a little scary if you don’t know how it works. But it’s actually amazingly easy if you do understand. Say you have this, where C is your HEAD and (F) is the state of [...]

Problem: Last day, I got stuck on repo sync. I was unable to sync as git gave error – “It looks like git-am is in progress. Cannot rebase.” Solution: I’ve deleted rebase-apply directory on .git, finally succeed in repo syncing. Following command I’ve used: rm -rf .git/rebase-apply

How Git Stores Information

by shaiekh on May 29, 2011

This note is an extremely high level of overview on how the Git object model works, based mostly on the Git Community Book. Git stores just the contents of the file for tracking history and not just the differences between individual files for each change. The contents are then referenced by a ‘Object name’ of [...]