DEV Community


Posted on

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

This detailed tutorial 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" >>
git init
# Create New repository on GitHub
# git remote add origin url
git remote add origin
git remote -v
git pull origin master
git add .
git commit -m 'init'
git push origin master

Top comments (0)