You want to push your local files to remote files git push -f <remote> <branch> git push -f origin master Local version has priority over the remote one! more...
[Hack] easy way is to change url directly from the source code,
open
.git/configfile in your favorite editor ornano,vim.and change the
url = git@github.com:lifeeric/uploadToS3.gityour repo url:[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [remote "origin"] url = git@github.com:lifeeric/uploadToS3.git # here paste your url fetch = +refs/heads/*:refs/remotes/origin/* [branch "main"] remote = origin merge = refs/heads/main [pull] rebase = falseHope you like it. thank you!