Switching remote URL in git

  1. Open terminal.
  2. Change the current working directory to your local project.
  3. Use the command (this will list the current remote URL):
    • git remote -v
  4. Then issue the following command (this will change the remote URL):
    • git remote set-url origin https://your-git-rep-url.git/
  5. Verify that the remote URL has changed:
    • git remote -v

Power function

In C/C++ (and also other languages), we have the built in power function to raise a number to a given power. What if we need to calculate ...