how to use git remote code example
Example 1: git check upstream url
git remote show origin
Example 2: git set remote
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 3: git remote list
git remote -v
Example 4: show remote git
# when you are not connected to the network, you can use this
git config --get remote.origin.url
Example 5: github remote
echo "# HarryFoods" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin < repo url >
git push -u origin main