Understanding how git works