DEV Community

Cover image for How to Publish a New Project to Github with VS Code
Christian Nwamba
Christian Nwamba

Posted on

12 2

How to Publish a New Project to Github with VS Code

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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs