Creating a New GitHub Repository
There are several ways to create a new GitHub repository. Here is one way I like to do it:
-
Create a new repository with the “New repository” button.
-
Fill out the “Repository name”.
-
Select “Add a README file”.
-
Click “Create repository”.
-
In your local terminal, clone the new repository with the following command:
git clone https://github.com/<username>/<repo-name>
-
Copy or move the files you want to the
folder. -
Run the following code to add the new files to your GitHub repository:
cd /path/to/<repo-name> git add * git commit -m "adding files" git push