Git And Working With GitHub – Adding Existing Project To GitHub

Wether you have a project that you already created or you want to start one from scratch, you can do that with the Git CLI.

Adding existing project to a new GitHub repo.

Head to and login. Create a new project but make sure to not check “Initialize this repository with a README” and you probably don’t need a gitignore or license right away and they can be added later. The rest is self explanatory.

Now that you have a repo created the next page has the rest of the commands you need to use to get your files added to the repo.

echo "# Example" >>
git init
git add
git commit -m "first commit"
git remote add origin
git push -u origin master

These are related to the example I made, change out the url based on your project.


It’s pretty simple to add git to your project and start managing your poject via GitHub. Remember that if you want to keep your project private, to upgrade your account. Let us know if you have more questions or want to share your experiences with GitHub.

Leave comment

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