[The definitive guide](Git for beginners: The definitive practical guide) ###Some useful tips: [Undo last commit](http://stackoverflow.com/q/927358/14065) [Undo a rebase](http://stackoverflow.com/q/134882/14065)