Table of Contents |
---|
SnapLogic → GitHub
Adding Files in the GitHub Repository Through
SnapLogicTo add a new file to your GitHub repository throughSnapLogic
Manager:- Upload the file by clicking
- the + symbol. The file displays in the Asset table
- ; but the GitHub Status
- reads Untracked.
- Open the File options menu by clicking the downward arrow adjacent to this
- file in the Asset table.
-
- Click
- Add to Repository. The GitHub status changes to Added.
-
- 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.
- Add
- a Commit Message.
- Click Commit.
- The file is added to the
- Asset table and the GitHub Status reads
- Tracked.
- Refresh the GitHub page. The new file
- is displayed in the repository
- along with the commit message.
Note |
---|
If you omit step #3 and commit changes to the repository:
|
Adding Assets/Files in SnapLogic Through GitHub
- Go to your GitHub repository.
- Add the file.
- Add a commit message and commit changes by clicking on Commit.
- Go to the project's Asset table in SnapLogic Manager.
- In GitHub menu options click GitHub Pull. The GitHub Pull dialog box opens, this shows which files were added in the Asset list.
- Click on Ok to close the dialog box.
|
Updating Files in the GitHub Repository Through SnapLogic
- 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.
- 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.
- Add a
- Commit Message, if required
- .
- Click Commit.
- Refresh your GitHub repository.
Deleting Files in the GitHub Repository Through SnapLogic
- Open the File options menu by clicking the downward arrow adjacent to the file to be deleted.
- Click Remove from Repository. The GitHub Status changes to Removed.
- Commit changes by going to the GitHub menu and clicking Commit to GitHub Repository. The Commit Changes dialog box opens.
- Add a Commit Message, if required.
- Click Commit.
- Refresh your GitHub repository.
GitHub → SnapLogic
Adding Assets/Files in SnapLogic Through GitHub
- Go to your GitHub repository.
- Add the file.
- Add a commit message
- .
- Commit changes by clicking
- Commit.
- Go to the project's Asset table in SnapLogic Manager.
- In GitHub menu options click GitHub Pull. The GitHub Pull dialog box opens,
- displaying the files that were
- added in the Asset list.
- Click
- Ok to close the dialog box.
Deleting 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.
Updating Assets/Files in SnapLogic Through GitHub
Repository Through SnapLogic- Go to your GitHub repository.
- Update the file.
- Add a commit message and commit changes by clicking Commit.
- Go to the project's Asset table in SnapLogic Manager.
- In GitHub menu options click GitHub Pull. The GitHub Pull dialog box opens, displaying the files that were updated in the Asset list.
- Click Ok to close the dialog box.
Deleting Assets/Files in SnapLogic Through GitHub
- Go to your GitHub repository.
- Delete the file.
- Add a commit message and commit changes by clicking
- Commit.
- Go to the project's Asset table in SnapLogic Manager.
- In the GitHub menu
- click GitHub Pull. The GitHub Pull dialog box opens,
- displaying the files that were deleted in the Asset list.
- 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.
At such times SnapLogic offers you a choice to overwrite your AssetIn such scenarios, SnapLogic lets you specify whether you want to overwrite.
To overwrite your local file with the repository version, select the
file by clicking on its corresponding checkbox and click onfile and click Pull.
A confirmation that the file was overwritten is shown. Click OK to close it.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
PullPull dialog
dialogbox
and click on. Click Pull.
To overwrite the version in the GitHub repository, perform a
commitCommit operation.