This tutorial assumes you have already ran the following commands, if not then you can run them now but it might be easier to just make a repository and clone it.
Initialising the current directory using git
|
|
Adding current files to a commit
|
|
Creating the commit
|
|
Now that you have created a commit, you can simply run the following command:
|
|
For example:
|
|
If your repository is a private one, like mine, then you will need to be signed in.
Now push your changes:
|
|
Now if you go to your repository on GitHub, you should see your files. You have successfully added your existing files to a new GitHub repository.