I have git bash installed on Visual Studio Code Windows. This is what I have so far:
git push
fatal: No configured push destination.
Then I set remote origin to https not ssh because I have a Large file and LFS doesn't work well with SSH (well at least that's what it said in stackoverflow somewhere, I forget)
$ git init
Reinitialized existing Git repository in C:/xampp7.2/htdocs/folder2-temp/.git/
$ git branch -M main
$ git remote add origin https://github.com/mygithubid/myrepository.git
$ git add .
$ git commit
On branch main
nothing to commit, working tree clean
$ git push
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin main
$ git push --set-upstream origin main
Enter passphrase for key '/c/Users/guestaccount/.ssh/id_rsa':
Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done.
batch request: git@github.com: Permission denied (publickey).: exit status 255
error: failed to push some refs to 'ssh://github.com/mygithubid/myrepository.git'
So as suggested on stackoverflow I tried this:
$ git remote -v
origin ssh://git@github.com/mygithubid/myrepository.git (fetch)
origin ssh://git@github.com/mygithubid/myrepository.git(push)
Ok Cool. Need to reset that to https://
$ git remote set-url origin https://github.com/mygithubid/myrepository.git
Ok let's see if SSH was reset to HTTPS
$ git remote -v
origin ssh://git@github.com/mygithubid/myrepository.git (fetch)
origin ssh://git@github.com/mygithubid/myrepository.git (push)
Bite me!
Ok someone please help me reset github to https from SSH I am sincerely stuck :D