git push -f <remote> <branch>
git push -f origin master
git push -f <remote> <branch>
git push -f origin master
Thank you. It's works for me also. Good Job!
[Hack] easy way is to change url directly from the source code,
open .git/config
file in your favorite editor or nano
, vim
.
$ nano .git/config
and change the url = [email protected]:lifeeric/uploadToS3.git
your repo url:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
[remote "origin"]
url = [email protected]:lifeeric/uploadToS3.git # here paste your url
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "main"]
remote = origin
merge = refs/heads/main
[pull]
rebase = false
Hope you like it. thank you!
thanks