DEV Community

loading...

Getting a Project onto GitHub

Eric Bishard
Senior Developer Advocate for @Couchbase (NodeJS)
Updated on ・1 min read
  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

Discussion (0)