Adding local repository to git hub with GUI?

1667 views git

I'm trying to add a local repo to git hub that already existed before I used git, I've added it locally to my git hub desktop GUI but when I try to push it, it says the repository doesn't exist.

So exactly how to I upload it to git hub? Tutorial by git itself says what I've already done?

There doesn't seem to be much help out there. To make things 100% clear,the files exist on my desktop, how do I get them inside of a new github repo without having to create the repo in a different location, copy the files over to the enw location, modify my existing paths to that old location, and then push to the github servers. Surely there is an easier way?

answered question

do you see an option to publish in your GUI ?

I have the option to push, but then it says that the repository doesn't exist. I think its because I've previously linked a repo of the same name at that location, but deleted it on my git but not locally. But I don't think that would make much of a difference?

1 Answer


if you are trying to set a remote for a locally create repo, you can use this:

git remote add origin <remote repository URL>

refer this url for a detailed description from scratch.

posted this

Have an answer?


Please login first before posting an answer.