DEV Community

Eric Bishard
Eric Bishard

Posted on • Edited on

1

Getting a Project onto GitHub

  1. open command line, change directory to root of project
  2. initialize Git locally, run: git init
  3. run: git add . and git commit -m "initial commit" separately
  4. this will stage and commit all files
  5. consider using a .gitignore file
  6. on GitHub create a new repo: 'Your Repositories' > 'New'
  7. if your repo is named: 'MyRepo', and your Github user: 'MrGuy'
  8. run: git remote add origin https://github.com/MrGuy/MyRepo
  9. run: git push -u origin master

Top comments (0)

Postmark Image

20% off for developers who'd rather build features than debug email

Stop wrestling with email delivery and get back to the code you love. Postmark handles the complexities of email infrastructure so you can ship your product faster.

Start free

👋 Kindness is contagious

Explore this insightful post in the vibrant DEV Community. Developers from all walks of life are invited to contribute and elevate our shared know-how.

A simple "thank you" could lift spirits—leave your kudos in the comments!

On DEV, passing on wisdom paves our way and unites us. Enjoyed this piece? A brief note of thanks to the writer goes a long way.

Okay