How to change the URL for a remote Git repository

0 votes

Hi Team,

I have one remote Git repository. I want to change the URL for the repository. How can I do that?

Nov 21, 2020 in Git & GitHub by akhtar
• 38,180 points
76 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use the git remote command to set the URL. You can also edit .git/config and change the URLs there.

$ git remote set-url origin new.git.url/here
answered Nov 21, 2020 by MD
• 95,140 points

Related Questions In Git & GitHub

0 votes
1 answer
0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2, 2019 in Git & GitHub by Sirajul
• 59,050 points
375 views
0 votes
1 answer
0 votes
1 answer

How to add a remote git repository in Jenkins

Follow these steps: Step 1 Go to Manage ...READ MORE

answered May 23, 2019 in Git & GitHub by Alok
1,733 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,038 views
+2 votes
1 answer
+1 vote
1 answer

How to view the change history of a file using Git versioning?

Hi@akhtar, You can use gitk for this task. ...READ MORE

answered Dec 22, 2020 in Git & GitHub by MD
• 95,140 points
58 views
0 votes
1 answer

How do I go to a particular version of a file in the Git repository?

Hi@akhtar, You can use git checkout <sha1> to check ...READ MORE

answered Jan 5 in Git & GitHub by MD
• 95,140 points
183 views