# Clearing Git History To clear the git history you need to create a temporary branch (which you can then remove later). ```sh git checkout --orphan temp git rm -rf ```