Skip to end of banner
Go to start of banner

GitHub: Operations

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »


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
  2. Open the File options menu by clicking the downward arrow adjacent to this file in the Asset table. 
  3. Click Add to Repository. The GitHub status changes to Added.
  4. Go to the GitHub menu and click Commit to GitHub Repository. The Commit changes dialog box opens. The file is shown under Changes to Commit in the dialog box.
  5. Add a Commit Message. 
  6. Click Commit. The file is added to the Asset table and the GitHub Status reads Tracked
  7. Refresh the GitHub page. The new file is displayed in the repository along with the commit message. 

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.
  2. 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.
  3. Add a Commit Message, if required.
  4. Click Commit
  5. Refresh your GitHub repository. 

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.
  2. Click Remove from Repository. The GitHub Status changes to Removed.
  3. Commit changes by going to the GitHub menu and clicking Commit to GitHub Repository. The Commit Changes dialog box opens. 
  4. Add a Commit Message, if required.
  5. Click Commit.
  6. Refresh your GitHub repository. 


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.

  • No labels