Skip to main content

Git Workflows

You can perform many common Git workflows in Design Center. Most of these are performed from the Workspace and Source Control panels, both of which can be accessed in the left-side navigation.

You can navigate the Git repositories connected to your AtScale account from the Workspace panel.

At the top of the panel, use the Repo and Branch fields to switch between repositories and branches.

The Workspace panel, with the Repo and Branch fields highlighted.

After selecting a repository and branch, you can drill down through the individual folders and files within the repository. You can also use each object's context menu to perform actions like duplicating the object, editing it, deleting it, and so on.

The Workspace panel, with a file's context menu and button highlighted.

Pull incoming changes

If another user has committed changes to the repository and branch you're working on, you can pull them from the Source Control panel.

To pull incoming changes:

  1. In the left-side navigation, click Source Control. The Source Control panel opens.

  2. To review the incoming changes before pulling them, expand the Incoming Commits section.

    All incoming changes are listed. You can click on each to view the commit ID and the files that were changed. You can also use each file's context menu to view its diff, as well as open it for editing.

    The Incoming Commits section of the Source Control panel, with the context menu for an incoming change highlighted.

  3. To pull the changes, click Sync at the bottom of the panel.

View diffs

If you've made changes locally and want to review them before committing, you can view the diff between the original and modified versions of the file.

To view the diff for a file:

  1. In the left-side navigation, click Source Control. The Source Control panel opens.

  2. Expand the Workspace Changes section.

  3. Click the context menu for the change you want to view and select Diff against latest changes.

    The Source Control panel, with the "Diff against latest changes" menu option highlighted.

    The selected file opens in the Diff Editor.

    A modified file in the Diff Editor.

Revert local changes

If you have uncommitted local changes you no longer want, you can revert them from the Source Control panel.

To revert local changes:

  1. In the left-side navigation, click Source Control. The Source Control panel opens.

  2. Expand the Workspace Changes section.

  3. Do one of the following:

    • To revert a single change, click the change's context menu and select Revert changes.

      The Source Control panel, with the "Revert changes" menu option highlighted.

    • To revert multiple specific changes, select them in the list, then click the context menu for the Workspace Changes section and select Revert Selected.

      The Source Control panel, with the Revert Selected menu option highlighted.

    • To revert all changes, click the context menu for the Workspace Changes section and select Revert All.

      The Source Control panel, with the Revert All menu option highlighted.

The changes are undone and no longer appear in the Workspace Changes section.

Commit and push changes

You can commit and push your changes from the Source Control panel.

To commit your changes:

  1. In the left-side navigation, click Source Control. The Source Control panel opens.

  2. Expand the Workspace Changes section.

  3. Select the changes you want to commit. The Commit message section appears at the bottom of the panel.

  4. Enter a commit message and click Local Commit.

    The Source Control panel, showing a commit message and the Local Commit button.

  5. To push your changes to the remote repository, click Sync.

Undo local commits

If you have locally committed changes that you do not want to push to the remote repository, you can undo them from the Source Control panel.

  1. In the left-side navigation, click Source Control. The Source Control panel opens.

  2. Expand the Un-pushed Commits section

  3. Click Undo Last Commit.

    The Source Control panel, with the Undo Last Commit button highlighted.

  4. In the dialog that appears, click Undo Commit.

Your changes are uncommitted and appear in the Workspace Changes section of the Source Control panel.