← Back to Mission Control

Cockpit Integration

3 min read

Git and VS Code

Mission Phase 31 • Difficulty: Beginner

A Visual Git Interface

VS Code has powerful built-in Git support, providing a graphical interface while keeping command-line power available.

Source Control Panel

Click the Source Control icon in the Activity Bar or press Ctrl+Shift+G.

Key Features

Making Commits in VS Code

  1. Make changes to files
  2. Open the Source Control panel
  3. Click "+" next to files to stage
  4. Enter a commit message in the text box
  5. Click the checkmark to commit

Viewing Changes

Click any file in Source Control to see its diff. Changes are highlighted with colors.

Branch Management

The bottom-left status bar shows the current branch. Click it to:

Resolving Conflicts

VS Code highlights merge conflicts with options:

Extensions

Enhance the Git experience:

Terminal Integration

Press Ctrl+` to open the integrated terminal. Best of both worlds—GUI and command line!

Next: Command Interface

VS Code enhances your workflow. Next, learn GitHub CLI for even more command-line power.