How to use GitHub Desktop to manage your code on macOS Catalina

GitHub is a useful service to manage your codes online. Some developers are using git command from the command line to push and pull codes from GitHub repositories. If you are more of visual type of person, there is a GUI tool for GitHub code management called GitHub Desktop. In this post, let’s walkthrough on how to use GitHub Desktop.

Do you want to learn more about the Git command? Check out the below books from Amazon.

Sign Up for an Account

Before using GitHub Desktop, sign up for GitHub if you do not have GitHub account yet. You can sign up your GitHub account at https://github.com/join?source=header-home

Download GitHub Desktop

Next is download the GitHub Desktop installer from https://desktop.github.com/ and install it in your system.

Launch GitHub Desktop

Once you have completed the installation of GitHub, launch the GitHub Desktop and sign in using your GitHub account.

GitHub Desktop
GitHub Desktop

Create a Repository

While you are launching the GitHub Desktop, create a repository on GitHub.com. Click New to create the new repository.

GitHub Desktop

Assign some repository name and click Create repository. (Repository type can be Public or Private. If you only want to have access only by yourself, select Private.) In this example, I created a repository name of github-desktop-example

GitHub Desktop

Link Repository to your GitHub Desktop

After you have created a repository

Select Clone a Repository from the Internet...

GitHub Desktop

Select the Repository you just created on GitHub.com. In this case, I select the yfujieda/github-desktop-example

Make sure to select the Local Path where you want to sync your repository on your local machine.

GitHub Desktop

Commit and Push a File

Let’s try to commit and push a file. Go ahead and create a file (e.g. README.txt) in the local path.

As you can see below, in the GitHub Desktop, README.txt will show up with + (plus) sign. This means, this file is a new addition.

Click Commit to master

GitHub Desktop

Now the README.txt file is committed but it has not been publish (push) to the master branch. So click Publish branch to check in your code in the repository.

GitHub Desktop

Check GitHub.com Repository

If you check the repository on GitHub.com, you will see the README.txt is added in the repository.

GitHub Desktop

Once you have codes to check in, just repeat the same procedures as we did on README.txt.

In How to pip install from GitHub Repo post, You will find out how to use GitHub as a host for Python Package (see How to Create a Python Module Package).

Latest Posts

Feel free to share this post!

Scroll to Top