- open command line, change directory to root of project
- initialize Git locally, run:
git add .and
git commit -m "initial commit"separately
- this will stage and commit all files
- consider using a .gitignore file
- on GitHub create a new repo: 'Your Repositories' > 'New'
- if your repo is named: 'MyRepo', and your Github user: 'MrGuy'
git remote add origin https://github.com/MrGuy/MyRepo
git push -u origin master
Classic DEV Post from May 10