DEV Community

windy
windy

Posted on

Add your project located on PC to GitHub, A detailed How To Article

This detailed tutorial http://bit.ly/2UoEXLe will walk you through adding an existing project to GitHub.

Following is the Quick Cheat Sheet to add existing repository to git has step by step approach to add and push an existing code base to a new GitHub repository.

echo "# my-first-repo-on-github" >> README.md
git init
# Create New repository on GitHub
# git remote add origin url
git remote add origin https://github.com/your-awesome-username/name-of-your-repository.git
git remote -v
git pull origin master
git add .
git commit -m 'init'
git push origin master

Top comments (0)