About changing repo name

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.

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:

1 Like

Thanks. I have read the link you attached. I wonder if I need to use git remote add? I am really worried to mess up my current project.

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 git remote -v. That shows the push and fetch URLs for all remotes you have configured, which should reveal any obvious errors.