What I had to do was:
git remote rm origin
git remote add origin '[email protected]:username/repo.git'
Then, I was able to push my changes.
More Related Contents:
- How to remove file from Git history?
- SSL certificate rejected trying to access GitHub over HTTPS behind firewall
- Git: Could not resolve host github.com error while cloning remote repository in git
- Git Init in home directory – now unable to commit changes
- Does github remember commit IDs?
- Is it possible to include a file in your .gitconfig
- Git – remote: Repository not found
- How to disable osxkeychain as credential helper in git config?
- Can deleted .git be restored?
- Merging between forks in GitHub
- Having Trouble Switching Github accounts on terminal
- How to compare two different commits on the same branch in github?
- How do I avoid the specification of the username and password at every git push?
- Repository size limits for GitHub.com
- Push to GitHub error: Couldn’t find host github.com in the .netrc file; using defaults
- How do I add an existing Solution to GitHub from Visual Studio 2013
- git status shows fatal: bad object HEAD
- Visual Studio Code is always asking for Git credentials
- Git branch name – case sensitive or insensitive?
- Git pushing to remote GitHub repository as wrong user
- How to sync with a remote Git repository?
- git clone hangs forever on github
- Push and pull my conda environment using git
- how to log out of one Github account and use another account?
- Transfer git repositories from GitLab to GitHub – can we, how to and pitfalls (if any)?
- Create empty branch on GitHub
- Pushing a large github repo fails with “unable to push to unqualified destination: master”
- Git cannot lock ref ‘HEAD’: unable to resolve reference HEAD
- Git clone repository error: RPC failed; result=56, HTTP code = 200
- npm install package from github repo subfolder