Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Source Code Management by Git, Github and SourceTree
Rating: 4.8 out of 5(31 ratings)
1,205 students

Source Code Management by Git, Github and SourceTree

A practical guide to Git, Bitbucket, VS Code, SourceTree, and team collaboration from beginner to advanced.
Last updated 1/2026
English

What you'll learn

  • efficiently use Git within VS Code, including repository setup, committing changes, and syncing with GitHub.
  • Understand how to use SourceTree as a Git GUI client to manage repositories and collaborate using Bitbucket.
  • Gain hands-on experience in executing Git commands through Windows PowerShell while managing repositories in Bitbucket.
  • Learn best practices for using Git workflows, branching strategies, and resolving merge conflicts using both CLI and GUI tools.

Course content

5 sections5 lectures35m total length
  • How to work using Git with Visual Studio Code and Github8:02

    How to Work Using Git with Visual Studio Code and GitHub

    Introduction

    This guide provides a step-by-step tutorial on how to use Git with Visual Studio Code (VS Code) and GitHub for version control and project management. Whether you're a beginner or an experienced developer, this documentation will help you understand the process of setting up Git, linking it with VS Code, and managing repositories on GitHub.

    Prerequisites

    Before getting started, ensure you have the following installed on your computer:

    • Git: Download and install Git.

    • Visual Studio Code: Download and install.

    • GitHub Account: Create an account on github.

    Setting Up Git with Visual Studio Code

    Step 1: Install Git

    1. Download Git from the official website.

    2. Run the installer and follow the setup instructions.

    3. Open Command Prompt or Terminal and verify the installation by running:

    git --version

    This should return the installed Git version.

    Step 2: Configure Git

    1. Set up your username:

    git config --global user.name "Your Name"

    1. Set up your email:

    git config --global user.email "your-email@example.com"

    1. Verify the configuration:

    git config --list

    Cloning a Repository from GitHub

    1. Go to GitHub and find the repository you want to clone.

    2. Copy the repository URL (HTTPS or SSH).

    3. Open VS Code and open the terminal (Ctrl + ` shortcut).

    4. Navigate to the directory where you want to clone the repository:

    cd path/to/your/directory

    1. Clone the repository:

    git clone from the repository.

    1. Open the cloned repository in VS Code:

    cd repository-name

    code .

    Creating a New Git Repository in VS Code

    1. Open VS Code and navigate to your project directory.

    2. Open the terminal and initialize Git:

    git init

    1. Add all project files to Git tracking:

    git add .

    1. Commit the files with a message:

    git commit -m "Initial commit"

    1. Create a new repository on GitHub.

    2. Link the local repository to GitHub:

    git remote add origin from Git repository

    1. Push the local repository to GitHub:

    git push -u origin main

    Working with Git in VS Code

    Checking Status

    To check the current state of your repository:

    git status

    Staging and Committing Changes

    1. Add specific files:

    git add filename.ext

    1. Add all files:

    git add .

    1. Commit changes:

    git commit -m "Your commit message"

    Pushing Changes to GitHub

    To push local commits to the GitHub repository:

    git push origin main

    Pulling Updates from GitHub

    To sync your local repository with the latest changes from GitHub:

    git pull origin main

    Creating and Switching Branches

    1. Create a new branch:

    git branch feature-branch

    1. Switch to the new branch:

    git checkout feature-branch

    1. Merge the branch into the main branch:

    git checkout main

    git merge feature-branch

    Resolving Merge Conflicts

    1. Open VS Code and check conflicting files.

    2. Manually resolve conflicts by choosing which changes to keep.

    3. Stage the resolved files:

    git add filename.ext

    1. Commit the resolution:

    git commit -m "Resolved merge conflict"

    1. Push the changes:

    git push origin main

    Using the Git Integration in VS Code

    Committing Changes

    1. Open the Source Control panel in VS Code (Ctrl + Shift + G).

    2. Click + to stage changes.

    3. Write a commit message.

    4. Click Commit to save changes locally.

    Pushing and Pulling in VS Code

    • Click on Sync Changes or use the command palette (Ctrl + Shift + P) and type Git: Push or Git: Pull.

    Conclusion

    Congratulations! You have learned how to set up and use Git with Visual Studio Code and GitHub. You can now effectively manage your code, collaborate with others, and maintain version control for your projects. Keep practicing and explore more Git features to enhance your workflow!

  • Check your learning skill by MCQ

Requirements

  • Basic Computer Knowledge, Basic Understanding of Programming
  • Required Tools & Software: Visual Studio Code – A free code editor for working with Git repositories, Git – Version control software (should be installed on your system), GitHub and Bitbucket Accounts – Free accounts for managing repositories online, SourceTree (Optional) – A GUI tool for working with Git and Bitbucket (covered in the course), Windows PowerShell or Command Line – For running Git commands and managing repositories.

Description

In this comprehensive course, you will master the essentials of source code management using Git, GitHub, and Bitbucket, while integrating them with popular development environments like Visual Studio Code and SourceTree. Whether you're a beginner or looking to sharpen your skills, this course will guide you through the entire workflow of managing your code effectively and collaborating with others.

We will begin by exploring Git, the powerful version control system, and show you how to set it up in Visual Studio Code. You will learn how to create repositories, track changes, and push your code to GitHub for easy collaboration. In next, we will dive into using SourceTree with Git, which simplifies the process of managing code and interacting with Bitbucket repositories. You will also discover the full potential of Bitbucket as a collaborative platform for your projects.

In the latter sections of the course, we will cover more advanced workflows, including integrating Git and PowerShell to streamline your development process on Windows. By the end of this course, you'll be able to confidently use Git and GitHub for version control, manage Bitbucket repositories, and collaborate seamlessly on any software project.

Join now and take the first step toward mastering source code management, improving your workflow, and becoming more efficient in your development projects!

Who this course is for:

  • This course is designed for beginners and intermediate learners who want to efficiently use Git with Visual Studio Code and manage repositories on GitHub and Bitbucket.