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!
I’m Jess, a Product Marketer for Jira Software Server and Data Center, and now a huge fan of our products. Read on for a 90 day, new-hire perspective on what it’s like to standardize on the Atlassian...
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