GitHub Series #4 : Installing GitHub Desktop and Creating a Local Repository
Let's install GitHub Desktop, a handy tool that simplifies repository management with just a few clicks.
1. Installing GitHub Desktop
Download from: https://desktop.github.com
Run the installer and complete the setup with default options. Once installed, sign in with your GitHub account.
2. Two Starting Points for Repository Setup
When using GitHub Desktop, your workflow will depend on where your project starts:
- [A] You created a repository on GitHub web → Clone
- [B] You started with a folder on your computer → New Repository
[A] Cloning a Repository from GitHub
- Create a repository on GitHub via the website.
- Open GitHub Desktop and go to
File > Clone Repository
. - Select the repository and choose a local path.
- Click Clone to download it to your PC.
[B] Creating a New Repository on Local Drive
- Open GitHub Desktop and select
File > New Repository
. - Set the repository name, folder path, and optionally a .gitignore file.
- Click Create Repository, then click Publish repository to upload it to GitHub.
3. Setting Up Visual Studio as External Editor
GitHub Desktop uses VS Code by default. To use Visual Studio instead, set the executable path manually:
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe
4. Disconnecting Git from Your Local Folder
If you want to disconnect a local folder from GitHub, just delete the hidden .git
folder.
- Enable hidden items in File Explorer via View > Hidden items.
- Locate and delete the
.git
folder inside your project.
⚠️ Warning: Deleting this will remove all Git history from the folder.
Next Up
In the next post, we’ll cover how to commit your changes and push them to GitHub.