why git does not commit and sync?