I am new to Git, I have a project that I did locally, and I want it on GitHub in a repository.
How can I achieve this, because GitHub only has 'Upload Files', not an upload folder kind of option?
I am new to Git, I have a project that I did locally, and I want it on GitHub in a repository.
How can I achieve this, because GitHub only has 'Upload Files', not an upload folder kind of option?
Download Git from here.
Make a repository at GitHub. It will give you a list of commands you can run to upload the project into the GitHub repository:
cd "Your project directory"
git init
git add .
git commit -m "First commit"
git remote add origin "your GitHub URL"
git push -u origin master
You can click on "upload files" and then drag & drop the folder. All the files in the folder should be added (it works me on Google Chrome).
But is not the recommended way. The best way is to create a local Git repository, and then push it to GitHub (see Sebastian Berge's answer).