I have main branch and feature branch, feature branch is created from main
branch.
Mistakenly some lines of code got deleted and committed in feature branch due to merging of branches.
Example:
main branch:
f1();
f2();
f3();
feature branch:
f1();
f3();
I have tried like this.
git checkout feature
git pull origin main
This is not getting deleted code.
If i raise pull request from feature to main and merge it will delete existing code.
How can i solve this problem??
Thanks,