Commit point - reset to old commit id

Seven Stars

Commit point - reset to old commit id

Hi,

 

I am working in my local branch and does commit after every major changes. During code deployment I discovered that I have mistakenly deleted one of the jobs from that branch. The Git History shows the job present in one of the commit. Now how to retrieve back the deleted job from the old commit id?

Could you kindly reply back at this may push the deployment.

 

Thank you.

 

Tags (1)
Employee

Re: Commit point - reset to old commit id

Hello , 

    There is no such function in studio to retrieve back the deleted job from the old commit id, but you can do by git:

  1. Clone the git repository locally and check the history to find out the commit id with correct items.
  2. Checkout the commit as a branch and push to remote

    git checkout 0a80a667e19aaac866cfb631c056557835aea2af -b new_branch

    git push origin my_branch:my_branch
  3. Start studio to logon the new_branch to export the deleted items and then import to your current branch.

 

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 3

Read about some useful Context Variable ideas

Blog