Revert ""cannot sync with uncommitted files""

This reverts commit a89cf32e09f3adfcfe27595ac6ff61c09a07e942.