Skip to main content Skip to complementary content
Close announcements banner

Git operations: what Talend Studio does behind the scenes

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.

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
Information noteNote:
  • 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>

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
Information noteNote: 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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!