0

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?

3
  • I would suggest the git and GitHub documentation. And you can check help.github.com/articles/… Commented Aug 27, 2018 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. Commented Aug 27, 2018 at 14:12
  • Voting to re-open. The linked duplicate is not an exact duplicate and doesn't answer the question at all. The "How do you create a new project/repository?" sounds promising, but it is only about creating a local repository. There is nothing about how to push it to Github. Commented Dec 20, 2023 at 10:18

2 Answers 2

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
Sign up to request clarification or add additional context in comments.

Comments

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.