Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


SnapLogic → GitHub

Adding Files in the GitHub Repository Through SnapLogic

  1. Upload the file by clicking the + symbol. The file displays in the Asset table; but the GitHub Status reads Untracked

Image Removed
  1. Open the File options menu by clicking the downward arrow adjacent to this file in the Asset table. 

Image Removed
  1. Click Add to Repository. The GitHub status changes to Added.

 Image Removed
  1. Go to the GitHub menu and click Commit to GitHub Repository.

Image Removed
  1. The Commit changes dialog box opens. The file is shown under Changes to Commit in the dialog box.
  2. Add a Commit Message. 
  3. Click Commit. The file is added to the Asset table and the GitHub Status reads Tracked
Image Removed
  1. Refresh the GitHub page. The new file is displayed in the repository along with the commit message. 
Image Removed

Note

If you omit step #3 and commit changes to the repository:

  • The file is added in your repository but it is displayed be an Untracked asset on the Asset table.
  • The file is shown  under Untracked assets in the dialog box in the Commit Changes dialog box. 


Updating Files in the GitHub Repository Through SnapLogic

  1. Upload the asset from your local storage (by clicking the + symbol, and uploading it). Since the file already exists in your repository (and in your Asset table), an "Overwrite" dialog box is displayed. Click Overwrite to confirm.
Image Removed
  1. Go to the GitHub menu and click Commit to GitHub. The Commit Changes dialog box opens. It automatically detects if there is a newer version of a file and lists it out in the dialog box under the Changes to Commit list.

Image Removed
  1. Add a Commit Message, if required.
  2. Click Commit
  3. Refresh your GitHub repository. 
Image Removed

Deleting Files in the GitHub Repository Through SnapLogic

  1.  Open the File options menu by clicking the downward arrow adjacent to the file to be deleted.

Image Removed
  1. Click Remove from Repository. The GitHub Status changes to Removed.

Image Removed

  1. Commit changes by going to the GitHub menu and clicking Commit to GitHub Repository. The Commit Changes dialog box opens. 
Image Removed
  1. Add a Commit Message, if required.
  2. Click Commit.
  3. Refresh your GitHub repository. 

Image Removed


GitHub → SnapLogic

Adding Assets/Files in SnapLogic Through GitHub

  1. Go to your GitHub repository.
  2. Add the file.
  3. Add a commit message.
  4. Commit changes by clicking Commit.
  5. Go to the project's Asset table in SnapLogic Manager.
  6. In GitHub menu options click GitHub Pull. The GitHub Pull dialog box opens, displaying the files that were added in the Asset list.
  7. Click Ok to close the dialog box.

Updating Assets/Files in SnapLogic Through GitHub

  1. Go to your GitHub repository.
  2. Update the file.
  3. Add a commit message and commit changes by clicking Commit.
  4. Go to the project's Asset table in SnapLogic Manager.
  5. In GitHub menu options click GitHub Pull. The GitHub Pull dialog box opens, displaying the files that were updated in the Asset list.
  6. Click Ok to close the dialog box.

Deleting Assets/Files in SnapLogic Through GitHub 

  1. Go to your GitHub repository.
  2. Delete the file.
  3. Add a commit message and commit changes by clicking Commit.
  4. Go to the project's Asset table in SnapLogic Manager.
  5. In the GitHub menu click GitHub Pull. The GitHub Pull dialog box opens, displaying the files that were deleted in the Asset list.
  6. Click Ok to close the dialog box.

Conflict Resolution in Pull Requests

It may happen that you have updated an asset in SnapLogic and also updated the same file in your GitHub repository. This causes a conflict when you perform a pull operation. In such scenarios, SnapLogic lets you specify whether you want to overwrite. 

 

To overwrite your local file with the repository version, select the file and click Pull. Click Ok in the confirmation message displayed.

If you do not want to overwrite the local file with the version in the GitHub repository, do not select the checkbox in the GitHub Pull dialog box. Click Pull.

To overwrite the version in the GitHub repository, perform a Commit operation.