Checkout a Git repository for a project space or project

  • A Git repository to associate with the Project Space

During checkout, you can optionally select the following options:

  • Hard Reset: Replaces all assets in your project or project space with those in the Git repository. Discards all uncommitted changes (modified or conflicting assets) and assets with an Added, Tracked, or Removed status.
  • Discard Untracked Files: With Hard Reset selected, deletes all untracked files from the project or project space during checkout.
Tip: You can select Hard Reset and leave Discard Untracked Files unchecked if you want to retain a set of assets without tracking them.
Important: For security, task bearer tokens are not stored in Git. When you check out (including a hard reset), SnapLogic recreates the bearer token for each task.
  1. Open Project Manager.
  2. In the navigation tree, locate the project space or project, and click the down arrow to open the menu:
  3. Select Checkout Git Repository.
  4. Configure the checkout settings for your provider:
    • For GitHub.com, GitHub Enterprise Server (GHES), and GitHub Enterprise Cloud (GHEC):
      Git Repository Checkout dialog for GitHub

      • Repository: Select the repository to check out.
      • Branches/Tags: Select the branch or tag to check out. You can filter the list by typing the first letters of the branch or tag name.
      • Directory: Select the repository folder to check out. The default root / checks out the entire repository.
        Directory dropdown expanded, showing repository folder structure

      • Hard Reset: Replaces all assets in the project or project space with those in the Git repository. Discards all uncommitted changes (modified or conflicting assets) and assets with an Added, Tracked, or Removed status.
      • Discard Untracked Files: With Hard Reset selected, deletes all untracked files from the project or project space during checkout.
    • For all other providers:
      Git Repository Checkout dialog

      • Repository: Select the repository to check out.
      • Branches/Tags: Select the branch or tag to check out. You can filter the list by typing the first letters of the branch or tag name.
      • Hard Reset: Replaces all assets in the project or project space with those in the Git repository. Discards all uncommitted changes (modified or conflicting assets) and assets with an Added, Tracked, or Removed status.
      • Discard Untracked Files: With Hard Reset selected, deletes all untracked files from the project or project space during checkout.
  5. Click Checkout.

The Git Integration associates the project space with the branch or tag and checks out any existing assets.