when system failed or local attachment of remote repository is lost execute following commands
Initialize the git repository git init
add repository git remote add origin {url}
pull contents git pull origin main
Check the branch
git branch
If branch is your intended branch skip below step
set branch
git checkout {branch_name}
push the repository git push origin main