try this : worked for me
rm -rf .git
You can use mv
instead of rm
if you don't want to loose your stashed commits
then copy .git from other clone
cp <pathofotherrepository>/.git . -r
then do
git init
this should solve your problem , ALL THE BEST
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…