Say I make a branch off master, make some changes to file1 and file2, then add, commit, and push those changes to the new branch. Four or five such commits and pushes later, say I regret ALL the changes I made to file2 and want the original version that's on master, while keeping all the changes I made to file1. Is there an easy way to use git to achieve this?
Asked
Active
Viewed 19 times
0
wheeeee
- 656
- 1
- 5
- 22