← Back to Mission Control

Cockpit Integration

2 min read

Git and VS Code

Mission Phase 25 • Difficulty: Beginner

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 (third from top) or press Ctrl+Shift+G.

Key Features

Making Commits in VS Code

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

Viewing Changes

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

Branch Management

Bottom left shows current branch. Click to:

Resolving Conflicts

VS Code highlights merge conflicts with options:

Extensions

Enhance Git experience:

Terminal Integration

Press Ctrl+` for 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.