Git operations: what Talend Studio does behind the scenes - Cloud - 8.0

Talend Studio User Guide

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development
Last publication date
2024-02-29
When working on a Git managed project, you can carry out various Git operations on the branches of your projects. The following two tables outline how Talend Studio interacts with GitHub when you carry out Git related operations in the local and remote modes, and gives the equivalent Git commands corresponding to the Talend Studio actions.

Available in:

Big Data

Big Data Platform

Cloud API Services Platform

Cloud Big Data

Cloud Big Data Platform

Cloud Data Fabric

Cloud Data Integration

Cloud Data Management Platform

Data Fabric

Data Integration

Data Management Platform

Data Services Platform

ESB

MDM Platform

Real-Time Big Data Platform

Talend Studio actions and equivalent Git commands in the local mode

User action in Talend Studio Git commands performed by Talend Studio
Save or unlock a project item
Note:
  • For Cloud, it applies only when the manual commit mode is not enabled.
  • For on-premises, it depends on the Commit mode settings in Talend Administration Center.
  1. Gets Git status.
    git status <current-project-name>
  2. Adds the modified files into index.
    git add <file>
  3. Commits changes.
    git commit -m <commit-message>
  4. Gets Git status.
    git status <current-project-name>
Select Push from the pull-down menu
  1. Gets Git status.
    git status
  2. Stashes other changes.
    git stash save -u <internal-name>
  3. Performs a pull.
    git pull
  4. Performs a push.
    git push
  5. Calls the JGit API to apply the stash.
  6. Drops the stash.
    git stash drop <stash-id>
  7. Gets Git status.
    git status
Select Pull And Merge Branch from the pull-down menu
  • If the local branch name is the same as the remote branch name:
    1. Gets Git status.
      git status
    2. Stashes other changes.
      git stash save -u <internal-name>
    3. Performs a pull.
      git pull
    4. Calls the JGit API to apply the stash.
    5. Drops the stash.
      git stash drop <stash-id>
    6. Gets Git status.
      git status
    7. Deletes local tags.
      git tag -d <tag-name>
    8. Fetches tags from the Git server.
      git fetch -t -p
  • If the local branch name is different from the remote branch name, performs a merge.
    git merge <selected-branch>
Select New Branch from the pull-down menu Creates a local branch based on the selected branch.
git branch <new-branch-name> <base-branch-name>
Select switch from the pull-down menu
  1. Gets Git status.
    git status
  2. Re-logs on to the project on the selected branch.
Select check out as local branch from the pull-down menu
  • If the local branch name is the same as the remote branch name, creates the local branch based on the selected branch and associates the new branch with the base branch.
    git branch <new-branch-name> <base-branch-name> --track
  • If the local branch name is different from the remote branch name, creates the local branch based on the selected branch.
    git branch <new-branch-name> <base-branch-name>
Select More > Add Tag from the pull-down menu
  1. Deletes local tags.
    git tag -d <tag-name>
  2. Fetches tags from the Git server.
    git fetch -t -p
  3. Creates the tag.
    git tag <tag-name>
  4. Deletes local tags.
    git tag -d <tag-name>
  5. Fetches tags from the Git server.
    git fetch -t -p
Select More > Reset from the pull-down menu Performs a reset to the current branch.
git reset --hard origin/<branch-name>

Available in:

Big Data

Big Data Platform

Data Fabric

Data Integration

Data Management Platform

Data Services Platform

ESB

MDM Platform

Real-Time Big Data Platform

Talend Studio actions and equivalent Git commands in the remote mode

User action in Talend Studio Git commands performed by Talend Studio
Save or unlock a project item
Note: It depends on the Commit mode settings in Talend Administration Center.
  1. Gets Git status.
    git status <current-project-name>
  2. Adds the modified files into index.
    git add <file>
  3. Commits changes.
    git commit -m <commit-message>
  4. Gets Git status.
    git status <current-project-name>
  5. Stashes other changes.
    git stash save -u <internal-name>
  6. Performs a pull.
    git pull
  7. Performs a push.
    git push
  8. Calls the JGit API to apply the stash.
  9. Drops the stash.
    git stash drop <stash-id>
  10. Gets Git status.
    git status
Select New Branch from the pull-down menu Creates a local branch based on the selected branch.
git branch <new-branch-name> <base-branch-name>
Select switch from the pull-down menu
  1. Gets Git status.
    git status
  2. Deletes local tags.
    git tag -d <tag-name>
  3. Fetches tags from the Git server.
    git fetch -t -p
  4. Re-logs on to the project on the selected branch.
Select check out as local branch from the pull-down menu
  • If the local branch name is the same as the remote branch name, creates the local branch based on the selected branch and associates the new branch with the base branch.
    git branch <new-branch-name> <base-branch-name> --track
  • If the local branch name is different from the remote branch name, creates the local branch based on the selected branch.
    git branch <new-branch-name> <base-branch-name>
Select More > Add Tag from the pull-down menu
  1. Deletes local tags.
    git tag -d <tag-name>
  2. Fetches tags from the Git server.
    git fetch -t -p
  3. Creates the tag.
    git tag <tag-name>
  4. Deletes local tags.
    git tag -d <tag-name>
  5. Fetches tags from the Git server.
    git fetch -t -p