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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay