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 github.com 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" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/sdatic/Example.git
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.

Article Categories:

Web developer and former photographer by trade...gamer and all around tech enthusiast in his free time. Christoph started sdatic.com as a way to organize his ideas, research, notes and interests. He also found it enjoyable to connect and share with others who parallel his interests. Everything you see here is a resource that he found useful or interesting and he hopes that you will too.

Leave a Reply

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