git-force-clone
Provides 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. More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-force-clone>.
RUN apt-get update && \
apt-get install -y git-extras
RUN apt-get update && \
apt-get install -y git-extras
RUN apt-get update && \
apt-get install -y git-extras
RUN dnf install -y git-extras
RUN apt-get update && \
apt-get install -y git-extras