git-force-clone
Get the basic functionality of git clone, but if the destination Git repository already exists it will force-reset it to resemble a clone of the remote. tldr-pages
On several platforms
Several platforms
Get the basic functionality of git clone, but if the destination Git repository already exists it will force-reset it to resemble a clone of the remote. Part of git-extras.
Clone a Git repository into a new directory
git force-clone remote_repository_location path/to/directoryIdentifyClone a Git repository into a new directory, checking out a specific branch
git force-clone --branch branch_name remote_repository_location path/to/directoryIdentify