Branch from a previous commit using git - Stack Overflow