DEV Community

loading...

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

windson profile image windy ・1 min read

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

Discussion (0)

Forem Open with the Forem app