Revert "fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree."

This reverts commit 46ef8c35510dc1c55fd247a3cbc1901924850503.