Create a Repo on

This guide should help you get started on, by walking you through the creation of a new git repository and by pushing a current folder from your machine up to

Go to your github com account in your browser.  Make sure you are under the “Your Repositories section”

Click on “New” button, next to “Repositories”

Creating a Blank Repo

Name your new repository something that is relevant to your project or the work you will be doing within this repo.

Choose to make this repo either public or private.  This can be changed at any time in the future.  If you are not sure, choose private until you are ready to share your work with the world.  Once the project is public, it is searchable within  

Then select to add a  This is a good place to put some notes about your project, what it aims to accomplish, and any notes that other people (or your future self) might need to actually use this project.  

Skip adding a .gitignore and adding a License for the moment (these can be added later, and your current project is private anyways).

Click on create repository.  

Create New Repo

You should then be presented a screen that should show your file.  Click on the “Code” button and choose either https or SSH, and copy that selection to your clipboard.  Only choose ssh if you have set up your keys in github (more info about how to do that here <link to article about setting up github keys)

Prepare to git clone your repo

Open your terminal, and navigate to the folder where you want to pull down your git repo.  

Do a “git clone “ and paste in what you copied from

Change Directory (cd) into your new repo.  Profit.

Importing a current project into

Change Directories (cd) into the top level directory where your project lives 

If you haven’t already, set up your git config with your username and email

git config –global “John Doe”

git config –global

You can setup your default git editor now as well (i prefer vim)

git config –global core.editor vim

Or if you prefer nano

git config –global core.editor nano

Then you are going to want to initialize this folder as a git repo.

Use the command “git init” to allow git to start tracking files in this folder 

Then go to, follow the steps to set up a new repo, but do not include a, or a .gitignore or license file.  

When you hit create, the next commands that you need will be on the screen for you to utilize.  In case you close the tab, here they are again:

If you try to push an existing repository from the command line, you’ll need to first commit your files/folders to your repo, before you change the branch name to Main (as the instructions on indicate).  If you don’t have anything committed, you’ll get this error:

Once you have the files added and committed to your local repo, you can follow the steps on and push the repo to the remote location.

Refresh your webpage, and if your push was successful, you will see the files on github

Leave a Reply

Your email address will not be published. Required fields are marked *