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

SnapLogicTo add a new file to your GitHub repository through

SnapLogic

Manager:

  1. Upload the file by clicking
on
  1. the + symbol. The file displays in the Asset table
,
  1. ; but the GitHub Status
reads as 
  1.  reads Untracked
Click on
  1. Image Added

  2. Open the File options menu by clicking the downward arrow adjacent to this
new
  1. file in the Asset table.
The File options menu will open.
  1.  
    Image Added

  2. Click
on
  1.  Add to Repository. The GitHub status changes to Added.
Commit this new file to your GitHub repository:
  1.  Image Added

  2. Go to
GitHub
  1. the GitHub menu and click
on
  1.  Commit to GitHub Repository.
    Image Added
    The Commit changes dialog box opens. The file is shown
under Changes
  1. under Changes to Commit in the dialog box.

  2. Add
commit message and click on
  1. a Commit Message. 

  2. Click Commit.
Your
  1. The file is added to the
repository
  1.  Asset table and the GitHub Status reads
as
  1.  Tracked. 
    Image Added

  2. Refresh the GitHub page. The new file
in
  1. is displayed in the repository
is displayed
  1.  along with the commit message. 
    Image Added


Updating Files in
Note

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

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

Adding Assets/Files in SnapLogic Through GitHub

  1. Go to your GitHub repository.
  2. Add the file.
  3. Add a commit message and commit changes by clicking on 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, this shows which files were added in the Asset list.
  6. Click on Ok to close the dialog box.
  • 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
on
  1. the + symbol, and uploading it). Since the file already exists in your repository (and in your Asset table)
you will see an overwrite
  1. , an "Overwrite" dialog box
. Confirm overwrite by clicking on
  1. is displayed. Click Overwrite to confirm.
    Image Added

  2. Go to the GitHub menu and
select
  1. click Commit to GitHub.
The Commit Changes dialog
  1. The Commit Changes dialog box opens. It automatically detects if there is a newer version of a file and lists
them
  1. it out in the dialog box under the Changes to
Commit list
  1. Commit list.
    Image Added

  2. Add a
commit message
  1.  Commit Message, if required
, in the Commit messages textbox and click on Commit. The file is committed to your GitHub repository. Refresh your GitHub repository to see the latest file. Your commit message is also visible.Updating
  1. .
  2. Click Commit
  3. Refresh your GitHub repository. 
    Image Added


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 Added

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

  3. Commit changes by going to the GitHub menu and clicking Commit to GitHub Repository. The Commit Changes dialog box opens. 
    Image Added

  4. Add a Commit Message, if required.

  5. Click Commit.

  6. Refresh your GitHub repository. 
    Image Added


GitHub → SnapLogic

Adding Assets/Files in SnapLogic Through GitHub

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

Updating Assets/Files in SnapLogic Through GitHub

Repository Through SnapLogic
  • In the Asset table, open the File options menu by clicking on the downward arrow adjacent to the file to be deleted.
  • Click on Remove from Repository. The GitHub Status changes to Removed.
  • Commit changes by going to the GitHub menu and clicking on Commit to GitHub Repository. The Commit Changes dialog box opens.
  • Add a commit message, if required, in the Commit messages textbox and click on Commit.
  • Refresh your GitHub repository, the file is deleted. Your commit message is also visible.

    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
    on
    1.  Commit.
    2. Go to the project's Asset table in SnapLogic Manager.
    3. In the GitHub menu
    options
    1. click GitHub Pull. The GitHub Pull dialog box opens,
    this shows which
    1.  displaying the files that were deleted in the Asset list.
    2. Click
    on
    1.  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.

    At such times SnapLogic offers you a choice to overwrite your Asset

     In such scenarios, SnapLogic lets you specify whether you want to overwrite

     Image Modified

    To overwrite your local file with the repository version, select the

    file by clicking on its corresponding checkbox and click on

     file and click Pull.

    A confirmation that the file was overwritten is shown. Click OK to close it.

    Click Ok in the confirmation message displayed.

    Image Modified

    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

    Pull dialog 

    dialog

    box

    and click on

    . Click Pull.

    Image Modified

    To overwrite the version in the GitHub repository, perform a

    commit

    Commit operation.