You could follow the advice in this SO answer. Basically:
# generate a reverse patch of your commit(s) $ git revert --no-commit <commit-sha>... # soft reset to clear your index $ git reset # interactively stage the deletion of only the lines to be reverted $ git add -p # remove the rest of the reverse patch that you don't want to commit $ git checkout . # finally, commit the revert $ git commit -m "Revert changes as per pull request"
Hope this helps!
On October 21st, 2020 we hosted a webinar titled, Step Up You DevOps Game with 4 Key Integrations for Jira and Bitbucket. We had a great showing and high engagement, but that meant th...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events