Learn Git as a beginner
Git atoz guideline
How to change git repo.
Open your old code folder on your computer and open terminal.
git remote rm origin
git remote add origin []
replace this [] with your new repo git link with .git
git remote -v
git branch -M main
git push -u origin main
done you have successfully changed it.