How to Publish a New Project to Github with VS Code

Christian Nwamba - Dec 14 '20 - - Dev Community

TL;DR VS Code has full Github integration


Every time you create a new project, you have to complete the following 5 steps to get the project into source control and in turn push to Github:

  1. Initialize
  2. Stage
  3. Commit
  4. Add remote
  5. Push

Though trivial, it is quite repetitive especially if as a developer, your role requires creating examples, demos, quick one-off projects for customers.

VS Code has full Github integration, one of which is clicking a button that does all of the above 5 steps for you.

Screenshot of publish to GitHub button

I made a video to show you how this works

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .