How to set git origin

In this article let’s discuss about How to set git origin. Let’s go through the following methods without any delay.

Method 1:

 git remote -v
 git remote set-url origin https://github.com/USERNAME/REPOSITORY.git

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

git remote set-url origin git@accountname.git.beanstalkapp.com:/your-repository.git

Hope the above solution works.

Realted Posts : Remote: the project you were looking for could not be found. fatal: repository ‘https://gitlab.com/mahkania/bus-staton-service.git/’ not found