-1

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?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
  • I would suggest the git and GitHub documentation. And you can check https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ – ilkerkaran Aug 27 '18 at 14:09
  • 2
    When you create a new repo on the `Github` they also tell you all of the commands to upload the repo. – Hamza Anis Aug 27 '18 at 14:12

2 Answers2

1

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
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
0

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).

Enter image description here

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).

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Shayki Abramczyk
  • 36,824
  • 16
  • 89
  • 114