A beginner-friendly guide to using Git and GitHub directly within VS Code. Covers initializing a repository, creating and switching branches, staging and committing changes, viewing diffs, merging branches, publishing to GitHub, and cloning repositories — all without leaving the editor. Also introduces the GitHub MCP extension to let Copilot interact with GitHub on your behalf.

11m read timeFrom github.blog
Post cover image
Table of contents
First some basicsInitializing a folderCreating and changing branchesTracking changes you makeViewing diffsMerging branchesPublishing to GitHubCloning a repositoryModel Context ProtocolNext stepsTags:Written by

Sort: