find remote origin git code example
Example 1: git view remote url
git remote show origin
Example 2: change remote repository git
git remote set-url origin git@accountname.git.beanstalkapp.com:/your-repository.git
Example 3: git check upstream url
git remote show origin
Example 4: git remote show origin
$ git remote -v
origin https://github.com/schacon/ticgit (fetch)
origin https://github.com/schacon/ticgit (push)
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
Example 6: remove remote origin git
git remote set-url origin git://new.url.here