git cancel the initial repo and build a new one code example Example: git reset initial commit git update-ref -d HEAD