Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.

 

Labels (3)
1 Reply
Anonymous
Not applicable
Author

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.