About changing repo name #23177
-
When I was working on my lab’s server, I was always asked for my username and password, which is annoying. After I followed some StackOverflow instructions, I seemed to change my repo name and wasn’t able to push and pull properly. How should I fix this? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It’s hard to say for sure without knowing exactly what you tried, but it looks like you changed the remote repository URL and made a mistake while doing so, leading to an invalid URL. You can obtain the correct URLs for HTTPS or SSH by going to your repository page on Github. Click on the green “Code” button and choose the protocol you want in the popup. To learn how to configure the remote URL, check: Git - Working with Remotes |
Beta Was this translation helpful? Give feedback.
-
Thanks. I have read the link you attached. I wonder if I need to use |
Beta Was this translation helpful? Give feedback.
-
The problem you described looks more like you need to fix the URL, but as I said it’s hard to say without more detail. A good start would be to look at the output of |
Beta Was this translation helpful? Give feedback.
It’s hard to say for sure without knowing exactly what you tried, but it looks like you changed the remote repository URL and made a mistake while doing so, leading to an invalid URL. You can obtain the correct URLs for HTTPS or SSH by going to your repository page on Github. Click on the green “Code” button and choose the protocol you want in the popup.
To learn how to configure the remote URL, check:
git-scm.com
Git - Working with Remotes