The Git (source code management) sidebar allows you to perform specific Git operations from within Nova. Nova’s git support is built-in and does not require any additional software to be installed.

To use the Git sidebar, you must open a Workspace that contains an existing Git repository. If your current workspace is not in a Git repository, the Git sidebar will give you the option to initialize one.

As you work in a Workspace that has been configured for Git, files will appear in the Git sidebar if they have been flagged by the version control system. For example, a file flagged as “M” has been modified. These flags generally correspond to their equivalents in the command line tools.

modified files showing in the sidebar

Depending on which flags the file has, different actions will be made available. Our hypothetical “M” file will be displayed in the Changes list with a checkbox for staging.

Actions are available at the top of the Git sidebar and include Fetch, Pull, and Push, as well as the ability to create or checkout branches. These actions, as well as the ability to discard changes to a file can be accessed from the Project > Git menu.

Nova will periodically update the Git sidebar with the repository’s status. You can manually refresh the status flags of the repository at any time by clicking the refresh button to the left of Stage All.

A full discussion on how to use source control is beyond the scope of this article. Please refer to the Git User Guide for more information.

Using GitHub in Nova

Nova doesn’t currently have support for GitHub accounts, but this is something we hope to add in the future. For the moment, using GitHub over HTTPS or SSH is the way to go.

Note: If you have two-factor authentication enabled for your account, it is necessary to create a personal access token when connecting via HTTPS. Once the token is created, you can use git as the username and your personal access token as the password for any GitHub HTTPS authentication prompts. Selecting “Save in Keychain” will cause Nova to remember the login.

This article was last updated on October 9, 2020