Skip to main content Skip to complementary content

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 table outlines how Talend Studio interacts with GitHub when you carry out Git related operations, and gives the equivalent Git commands corresponding to the Talend Studio actions.

Talend Studio actions and equivalent Git commands

User action in Talend Studio Git commands performed by Talend Studio
Save or unlock a project item
  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 & Merge 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 from the All branches dialog box
  • 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 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 – please let us know!