Skip to main content Skip to complementary content

Managing items on different branches and tags

Talend Studio supports the Git version control system, which enable you to have different copies of your items in different branches or tags. The items on one branch or tag will exist independently of those on another.

Copying items from a branch or a tag

Talend Studio allows you to copy one or more items from a remote branch or a tag to the branch you are currently working on.

Information noteNote:
  • You cannot copying items when working in the Git offline mode.
  • You can copy items from a tag to a branch but not vice versa, because a tag is a read-only copy of a project.

About this task

To copy an item or multiple items from a remote branch or a tag to the current branch:

Procedure

  1. In the Repository tree view, right-click an item such as a Job, or a node such as Job Designs, or a folder if you want to copy items of the corresponding type under it, and select Copy From Branch from the contextual menu.

    The Copy From Branch dialog box opens.

  2. Select a branch or a tag from which you want to copy items and click Next.
    Copy From Branch dialog box.
  3. Select the items you want to copy by selecting the corresponding check boxes.
    Copy From Branch dialog box.

    The items on the remote branch or the tag that have the same names as the items on the current branch can be listed in the tree view only if the Overwrite existing items check box is selected.

  4. Select the Import dependencies check box if you want to copy dependencies along with the items you have selected.
    The selection status of the Import dependencies check box is automatically saved for the next copy action.
  5. Select the Overwrite existing items check box if you want to overwrite existing items with those having the same names to be copied.
  6. Click Finish.
    The items on the remote branch or the tag you have selected are copied to the corresponding node or folder on the branch you are working on.

Reverting a project item on a tag

About this task

A tag is a read-only copy of a Git managed project that records the current state of the project at the point of time the tag is created. Although a tag is not meant to be a working copy of your project, you may still want to work on it for some reason and save your changes to a Job by copying it to a branch.

Once a project item is changed, a > symbol appears in front of it in the Repository tree view.

At any point while you are working on a tag, you can discard all the changes you made to a particular project item since the tag creation by reverting the item to its initial state, without affecting the changes to other project items.

To revert an item to its initial state, do the following:

Procedure

  1. In the Repository tree view, right-click the item and select Revert from the contextual menu.
    Information noteWarning: If you revert a project item created on the tag, the whole item will be deleted.
  2. In the confirmation dialog box, click Yes to confirm your operation.

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!