I created a folder on OneDrive called My files>GitHub>MedAverter. I note it's url:
https://onedrive.live.com/?id=CC97284F14BADC27%211034825&cid=CC97284F14BADC27
I downloaded GitHub Desktop and set the Current repository to the newly created MedAverter folder.
I navigate to my local code folder in git bash: /c/users/greg/LaravelProjects/MedAverter
I enter the following command:
git remote set-url origin https://onedrive.live.com/?id=CC97284F14BADC27%211034824&cid=CC97284F14BADC27
To check it is correct, I do:
git remote -v
here is the output:
origin https://onedrive.live.com/?id=CC97284F14BADC27%211034824 (fetch)
origin https://onedrive.live.com/?id=CC97284F14BADC27%211034824 (push)
Note that it is shorter than the original?
I do a git status and see a bunch of unstaged files, as expected. I stage them with
git add .
Then I commit the files with:
git commit -m "first commit"
Then push the files with:
git push -u origin master
But get error:
fatal: https://onedrive.live.com/?id=CC97284F14BADC27%211034824/info/refs not valid: is this a git repository?
What am I missing?