In the last 4-5 days, a made huge changes. For example, created listeners, custom keywords, created plenty of test objects, created a custom logger etc. Yesterday I had an issue while committing to git, and today all my changes are gone.
Is there a way that I can recover at least the missing test case scripts, the keywords and the listener?
Thank you very much for your topic! It may take a little while before Katalon team member or others forum members respond to you.
In the meantime, you can double-check your post to see if you can add any extra information i.e. error logs, HTML codes, screenshots, etc. Check out this posting guide to help us help you better!
Git is a super-rubust software. Git has been used and tested by millions of programmers in the world. I don’t think Git caused any error to @gsavva .
Did you carelessly delete the .git folder?
If YES, the only way is to restore the .git folder from some backup. If you do not have any backup, no way. Nobody can help you. All you should do is to forget the changes made in the past.
If the .git folder is still there, you would be able to find a way to restore your codes. But you haven’t described what you have now and what you have done. Unless provided concrete information, no one would be able to help you.
Hello kazurayam and thank you for the quick reply,
Git crashed in katalon while while trying to move unstaged changes to index in order to commit.
After that I was not able to execute any test suites, with the error:
“An internal error occurred during: “Adding Files to Index”.
Exception caught during execution of add command”.
So, while researching how to resolv this, I identified in .git folder, “index.lock” file which according to the guide that I found it had to be deleted (i did not delete this i moved it to another folder).
After the deletion, I managed to commit, without been able to see the unstaged changes, and after that my changes (including the nstaged changes ithat I initially tried to move to index), were lost.
use Command Line to execute the git command. Don’t use the Katalon-integrated Git menu, which could trouble you again
create a remote repository and continuously push the local repository into the remote. For example, GitHub. The remote repository is the safest storage.
When I am going to initiate a new project, I always start with creating a remote repository on GitHub. I mean, I will create a backup at the day 1 of the project. Secondly I will clone the repository from GitHub into my local machine. Thirdly I will get into the local repository = a directory and create a project; for example create a new Katalon project. Once I could make sure the new project is working, then I will push the project to the remote repository. While I carry out development tasks, I will push the local repository to the remote frequently for backup purpose. At least once a day; usually even more frequently.