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!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
@Davin Studer holds many interests, including but not limited to health tech and Star Trek. Read on to discover more about Davin, from his favorite Confluence macros to his favorite lit...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs