mercredi 27 janvier 2021 à 08:59
Create New Git Repo From Shallow Clone
Par Eric Antoine ScuccimarraHow to create a new git repo from a shallow clone to not keep the history.
git clone [old repo] --depth 1
git remote add new_source [new repo]
git remote remove origin
git rev-parse --verify master >> .git/info/grafts
git filter-branch -- --all git push new_source master
Libellés: git