weird git behavior. Troubleshooting commits