Git and VS Code are essential tools for any developer. This guide will help you install and configure them for effective work on Windows.
Step 1: Installing Git
- Download Git for Windows
- Run the installer and keep the default settings
- Enable command line integration
Step 2: Checking Git
Open PowerShell and execute:
git --version
- The version of Git should appear
Step 3: Configuring Git
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
git config --global core.editor "code --wait"
- Setting up global user and editor
Step 4: Installing VS Code
- Download VS Code
- Install and enable adding to PATH
- Install the GitLens extension for improved repository management
Step 5: Creating Your First Project
- Create a folder for your project and open it in VS Code:
mkdir my-project
cd my-project
code .
- Initialize Git:
git init
Step 6: Working with Git in VS Code
- Use the built-in Source Control for commits
- Manage branches, push, and pull through the VS Code interface
- You can connect GitHub or GitLab through extensions
Conclusion
After these steps, Git and VS Code are ready for full-fledged development on Windows. Configuring global settings and extensions allows for fast and organized work with local and remote repositories.