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/config
file in your favorite editor ornano
,vim
.and change the
url = git@github.com:lifeeric/uploadToS3.git
your repo url:Hope you like it. thank you!