Closed aborruso closed 4 years ago
Hi all, after installation steps
git clone https://github.com/google/docsy-example.git cd docsy-example git submodule update --init --recursive
I know I must create a new repo on github. To pushing my local files to the newly created repo, I think I should run something like
git remote add origin https://github.com/user/myNewRepo.git
But I have fatal: remote origin already exists. because I already have https://github.com/google/docsy-example.git.
fatal: remote origin already exists.
https://github.com/google/docsy-example.git
Is it the right way to solve to run git remote rm origin and than add the new origin? If now, what's the way to do it?
git remote rm origin
Thank you
It's not the right repo
Hi all, after installation steps
I know I must create a new repo on github. To pushing my local files to the newly created repo, I think I should run something like
But I have
fatal: remote origin already exists.
because I already havehttps://github.com/google/docsy-example.git
.Is it the right way to solve to run
git remote rm origin
and than add the new origin? If now, what's the way to do it?Thank you