Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert file changes from a commit picked from the log #1075

Closed
andresovela opened this issue Jan 11, 2022 · 4 comments
Closed

Revert file changes from a commit picked from the log #1075

andresovela opened this issue Jan 11, 2022 · 4 comments
Labels
duplicate This issue or pull request already exists
Milestone

Comments

@andresovela
Copy link

Is your feature request related to a problem? Please describe.
I mistakenly committed some changes some time ago and I would like to revert them. A common thing I used to do with Sourcetree was to find the commit in question, right click on the file and select revert changes or something like that.

See relevant post in StackOverflow: https://stackoverflow.com/questions/2620775/revert-changes-to-a-file-in-a-commit

Describe the solution you'd like
It would be nice to be able to navigate to the files view of a commit in the log tab, select the file and have an option to revert the changes to that file.

Describe alternatives you've considered
None.

@extrawurst
Copy link
Owner

Duplicate of #927 right? It will be in the next release. Can you build from source and test if it works as expected?

@extrawurst extrawurst added the duplicate This issue or pull request already exists label Jan 11, 2022
@andresovela
Copy link
Author

Ah sorry, I did search for similar issues but I filtered by open issues :D

#927 seems to address reverting the entire commit? I'd be interested in reverting the changes in a particular file in a given commit, rather than reverting all the changes in all files in that commit. I haven't tested from source but from the issue description that's what it sounds like

@andresovela
Copy link
Author

Ah but I guess you can also discard the changes of the files that you don't want to revert, so I guess in a way this is already fixed :)

@extrawurst
Copy link
Owner

released as 0.20 now

@extrawurst extrawurst added this to the v0.20 milestone Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants