How to Use Git & GitHub Desktop Tutorial for Beginners |Video upload date:  · Duration: PT34M4S  · Language: EN

Step by step beginner guide to using Git and GitHub Desktop for version control and repo management with a GUI

If you want version control without the command line angst this guide will show you how to use Git and GitHub Desktop like a civilized human. We will cover installing the tools configuring your identity creating or cloning a repository making commits branching pushing code and opening pull requests. Yes you will learn the parts that actually matter and I will make a few sarcastic asides along the way.

Install Git and GitHub Desktop

Start by downloading Git for your operating system and then install GitHub Desktop. Git provides the engine under the hood and GitHub Desktop gives you a friendly GUI to do the common tasks faster. If you love the terminal you can keep using it and nothing will explode. If you do not love the terminal you will still get to look like you know what you are doing.

Why both tools matter

  • Git gives you full control over history and advanced features.
  • GitHub Desktop speeds up everyday workflows like committing branching and pushing.
  • Use the GUI for speed and the CLI for the edge cases when you want to look elite.

Configure your identity

Tell Git who you are so your commits do not show up as the mysterious anonymous human. Run these commands in a terminal or paste them into your preferred shell.

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

GitHub Desktop also has settings for theme and default branch if you want to click rather than type. Make sure your email matches the address on your GitHub account if you want contributions to link back to your profile.

Create a repository or clone an existing one

Open GitHub Desktop and choose New Repository to start local work or choose Clone Repository to copy a remote project to your machine. The app will show untracked files and the repository tree so you can see what is going on without incantations.

Make changes then stage and commit

Edit files in your favorite editor. When you are ready return to GitHub Desktop and stage selected files. Add a commit message that explains why you made the change not just what you changed. Good commit messages are a gift to your future self and everyone else who inherits your code.

git add .
git commit -m "Fix user input validation and add tests"

If you prefer the GUI click the checkboxes for the files add a clear message and hit Commit to master or to whatever branch you are on.

Push changes and work on branches

Click Push origin in GitHub Desktop to send local commits to GitHub. For new work create a branch for a feature or fix and switch between branches from the branch menu. Branching keeps the main branch clean and production ready which is nice for everyone except chaos.

  • Create a branch with the app or use the command line with git checkout -b feature-name
  • Push the branch to origin and open a pull request on GitHub

Open a pull request and merge

After you push a branch open a pull request on GitHub to request review and run any automated checks. Once approved use the merge button to combine the work into main then pull the updated main branch back to your machine. If there are conflicts resolve them locally or with the web editor and commit the result.

Quick checklist before opening a pull request

  • Run tests and linters locally
  • Write a short description of why the change matters
  • Keep the commits tidy or squash them when merging

Troubleshooting and tips

If you see merge conflicts do not panic. Open the conflicting files resolve the differences commit the result and push the branch again. If history feels messy consider an interactive rebase from the command line to clean it up before pushing. Remember the GUI will not hide bugs but it will make you feel better while you hunt them down.

Wrap up and best practices

Use clear commit messages branch for features and use pull requests for review. Keep your local and remote branches in sync and delete feature branches after merging to avoid digital clutter. With GitHub Desktop you get an approachable workflow for daily version control tasks and with Git you keep the power when you need it. Now go commit something useful and do not forget to give your commits names that future you will not curse.

I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!

This is a dedicated watch page for a single video.