Skip to content

Part 1 Getting Started

Jesper Nielsen edited this page Mar 16, 2026 · 1 revision

This page is a gentle introduction to GitHub, Git and Visual Studio Code - written for device administrators, IT professionals, and anyone taking their first steps into version control. No prior development experience is needed. The goal is to help you understand the basics, get set up, and start using these tools with confidence in your day-to-day work.

The content is based on the Getting started with GitHub, Git and Visual Studio Code demonstration session and covers prerequisites, installation, and initial configuration.

For creating and configuring a repository, see the Part 2 Creating a Repository page. For writing documentation and structuring repository files, see the Part 3 Repository Essentials page.

Why GitHub, Git and Visual Studio Code

Version control is not just for developers. Understanding GitHub, Git and Visual Studio Code brings real benefits for device administrators and IT professionals:

  • Track changes - Keep a full history of configuration files, scripts, and documentation so you can see what changed, when, and why
  • Collaborate safely - Work on scripts and configurations in branches without risking production-ready files
  • Share and reuse - Publish reusable PowerShell scripts, templates, and documentation for your team
  • Learn modern workflows - Build skills that transfer across tools like Microsoft Intune, Infrastructure as Code, and DevOps pipelines
  • Document decisions - Use wikis, README files, and commit messages to capture the reasoning behind changes

What you need before you start

Before the session, make sure you have the following prerequisites in place:

  • A GitHub account (free) - sign up at GitHub

Installing Visual Studio Code and Git

Visual Studio Code and Git can be installed using the Windows Package Manager (winget), which is included in modern versions of Windows.

Note

If you are running Windows on ARM and want native ARM64 versions, download the installers directly from the Visual Studio Code and Git for Windows download pages.

Installing Visual Studio Code

Visual Studio Code is a lightweight but powerful editor that works well with Git and GitHub. Use the following commands to search for and install Visual Studio Code:

# Description: Search for and install Visual Studio Code using winget
# Elevation is not required - winget installs per-user by default

winget search "Visual Studio Code"
winget show --Id "Microsoft.VisualStudioCode"
winget install --Id "Microsoft.VisualStudioCode" --silent

For a fully silent installation with custom options, use the override parameter:

# Description: Install Visual Studio Code silently with custom merge tasks
# Elevation is not required - winget installs per-user by default

winget install --Id "Microsoft.VisualStudioCode" --override "/VERYSILENT /NORESTART /MERGETASKS=!runcode"

Installing Git

Git is the version control system that tracks changes to your files. Install Git with the following command:

# Description: Install Git for Windows with common components enabled
# Elevation is not required - winget installs per-user by default

winget install --Id "Git.Git" --override "/VERYSILENT /NORESTART /COMPONENTS=ext,ext\shellhere,ext\guihere,gitlfs,assoc,assoc_sh,autoupdate"

Keeping software up to date

After installation, use winget to check for and apply updates:

# Description: Check for available updates and upgrade all installed packages
# Elevation is not required - winget upgrade runs per-user

winget upgrade
winget upgrade --All

Setting up Visual Studio Code

Once Visual Studio Code is installed, there are a few recommended steps to get the most out of it.

Sign in and sync settings

Sign in to Visual Studio Code using your GitHub account to connect your editor to GitHub. Open Visual Studio Code, click the account icon in the lower-left corner, and sign in with GitHub. Signing in enables several key features:

  • GitHub repository access - Clone, push, and pull repositories directly from the editor
  • Settings Sync - Keep your extensions, themes, keybindings, and preferences consistent across devices
  • GitHub Copilot - Get AI-powered code suggestions and chat assistance (requires a GitHub Copilot subscription)
  • Pull requests and issues - Review and manage pull requests and issues without leaving the editor

Recommended extensions

Visual Studio Code extensions add functionality for working with Git, Markdown, and PowerShell. These extensions are helpful for administrators and IT professionals:

  • EditorConfig for VS Code - Enforces consistent formatting across contributors
  • GitHub Pull Requests - Review and manage pull requests directly in Visual Studio Code
  • GitLens - Visualize code authorship, compare changes, and explore Git history
  • Insert GUID - Insert GUIDs in different formats directly into the editor
  • Learn Markdown - Markdown authoring assistance based on Microsoft Learn standards
  • PowerShell - Syntax highlighting, IntelliSense, and debugging for PowerShell scripts
  • XML Tools - XML formatting, XQuery, and XPath tools

Tip

You can share recommended extensions with your team by adding an extensions.json file to the .vscode folder in your repository. Visual Studio Code will prompt contributors to install the listed extensions when they open the project. See Workspace recommended extensions for details.

Configuring Git

Before you start working with Git, you need to configure your identity. Git uses this information to associate your name and email with every commit you make.

Setting up your global identity

Configure your username and email globally so they apply to all repositories on your device.

Open a terminal in Visual Studio Code by selecting Terminal > New Terminal from the menu. Git commands work directly in the default PowerShell terminal, as long as Git is installed on your device. Git Bash is also available from the dropdown arrow next to the + button in the terminal panel, if you prefer a Unix-style shell.

Run the following commands:

# Description: Configure Git global username and email
# Elevation is not required - Git config is stored in the user profile

git config --global user.name "Your Name"
git config --global user.email "your-email-address@domain.com"

Overriding identity for a single repository

If you need a different identity for a specific repository - for example, a work repository versus a personal one - navigate to the repository folder and set the values locally:

# Description: Configure Git username and email for a specific repository
# Elevation is not required - Git config is stored in the repository folder

cd C:\path\to\your\repository
git config user.name "Your Name"
git config user.email "your-email@domain.com"
git config --list

Useful references

These resources provide further reading on the topics covered on this page:


Page revised: March 7, 2026

Home

Part 1 Getting Started

This first part of the guide focuses on getting started with GitHub, Git, and Visual Studio Code. It covers the reasons for using these tools, what you need before you start, how to install and set up Visual Studio Code and Git, configuring Git, and useful references for further learning.

Introduction

Why GitHub, Git and Visual Studio Code

What you need before you start

Installing Visual Studio Code and Git

Setting up Visual Studio Code

Configuring Git

Useful references

Part 2 Creating a Repository

Part 2 focuses on creating a repository, including how to create a GitHub repository, initializing Git in a standalone folder, and useful references for further learning.

Creating a GitHub repository

Initializing Git in a standalone folder

Useful references

Part 3 Repository Essentials

Part 3 covers the essentials of working with repositories, including learning Markdown, common repository files, community health files, writing good commit messages, common scenarios for IT professionals, and useful references for further learning.

Learning Markdown

Common repository files

Community health files

Writing good commit messages

Common scenarios for IT professionals

Useful references

Part 4 Branching and Workflows

Part 4 delves into branching and workflows in Git. It covers the basics of Git branches, how to clone a repository, using multi-root workspaces in Visual Studio Code, working with branches, and the daily Git workflow. It also includes useful references for further learning.

Cloning a repository

Using multi-root workspaces

Working with branches

The daily Git workflow

Useful references

Part 5 Working With Repositories

Part 5 focuses on working with repositories, including understanding GitHub URLs, downloading files from GitHub using PowerShell, referencing files in a repository, and the differences between public and private repositories. It also includes sample scripts, an alternative using GitHub Gist, and useful references for further learning.

Understanding GitHub URLs

Downloading files from GitHub using PowerShell

Referencing files in a repository

Public vs. private repositories

Sample scripts

GitHub Gist as an alternative

Useful references

Part 6 AI as a Learning Companion

Part 6 explores how to use AI, specifically GitHub Copilot, as a learning companion to enhance your coding experience. It covers the basics of Vibe Coding, how to get started with GitHub Copilot, and practical tips for writing effective prompts and validating AI-generated code. It also includes guidelines for using AI-assisted coding and references for further learning.

What is Vibe Coding?

Getting started with GitHub Copilot

Your first Copilot conversation

Writing effective prompts

Generating and understanding a script

Learning a new concept through AI

Validating AI-generated code

Using logs and AI to troubleshoot and optimize

Guidelines for AI-assisted coding

Useful references

Part 7 Copilot Configuration

Part 7 focuses on configuring GitHub Copilot to enhance your coding experience. It covers how to create and use copilot-instructions.md files to provide context and guidance to Copilot, as well as best practices for sharing instructions across repositories.

Adding copilot-instructions.md to your repository

Sharing instructions across repositories

Useful references

Part 8 Field Notes

Part 8 is a collection of field notes, which are practical insights and tips that I've gathered through my experience working with GitHub, Git, Visual Studio Code, and GitHub Copilot. These notes are meant to provide additional context and guidance on specific topics that may not have been covered in depth in the previous parts.

Extension recommendations in multi-root workspaces

Copilot instructions and the GitHub Wiki sidebar

GitHub Wiki does not support branch switching

Launching Windows Sandbox from Visual Studio Code

Mirroring wiki pages into the main repository

Useful references

Part 9 Exercises

This is the exercises section! This is where you can apply what you've learned in the previous parts through practical exercises. Each exercise is designed to reinforce key concepts and skills related to GitHub, Git, and Visual Studio Code.

Prerequisites

Part 1 - Getting started

Part 2 - Creating a repository

Part 3 - Repository essentials

Part 4 - Branching and workflows

Part 5 - Working with repositories

Part 6 - AI as a learning companion

Part 7 - Copilot configuration

What to do next

Useful references

Revision

Clone this wiki locally