DEV Community

windy
windy

Posted on

1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more