git set repository url code example
Example 1: git config remote.origin.url
# change remote url
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 2: change remote repository git
git remote set-url origin git@accountname.git.beanstalkapp.com:/your-repository.git
Example 3: set remote url git
$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 4: git remote set url
git remote set-url origin new.git.url/here
Example 5: git get repository url
git config --get remote.origin.url
Example 6: set origin url git
git remote add origin <git_url>