Changing remote path in Git

Asked

Viewed 10,842 times

8

PROBLEM:

I gave git clone in the repository of Web Starter Kit and the project already comes with Git started and with git remote origin master configured as Git default.

So if I execute the command git push origin master Git will ask for permission so I can upgrade the changes I made locally to Google’s Github account, which I obviously don’t have.

QUESTION:

How can I change this remote path so I can send the data using the command git push origin master, so that I send it to my Bitbucket account instead of sending it to the source? (which in this case is the Google account on Github).

1 answer

19


You can both remove

git remote remove origin

add another

git remote add origin git://suaUrl

how much to change

git remote set-url origin git://suaUrl

Browser other questions tagged

You are not signed in. Login or sign up in order to post.