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

Reset file to specific revision feature #516

Closed
LinFor opened this issue May 25, 2021 · 4 comments
Closed

Reset file to specific revision feature #516

LinFor opened this issue May 25, 2021 · 4 comments
Assignees
Labels
feature request Feature request
Milestone

Comments

@LinFor
Copy link

LinFor commented May 25, 2021

Describe the feature that you'd like
The ability to reset a single file to a specific revision from commit details view.

I often reorganize commits when preparing pull requests, and sometimes it is necessary to transfer part of the changes from one commit to another. To do this, I usually make a "git checkout <commit-id> <filepath>" to get a file with the necessary changes in the working tree. It would be great to be able to invoke such an operation with one click from the commit tree view - via context menu or so.

In "Git Extensions" git client this operation called "Reset file to specific revision".

Additional context (optional)
image

@LinFor LinFor added the feature request Feature request label May 25, 2021
@mhutchie
Copy link
Owner

Hi @LinFor,

Thanks for raising this feature request, it would definitely be a great capability to include in Git Graph! I’ll include it in an upcoming release.

@mhutchie mhutchie added this to the v1.31.0 milestone May 30, 2021
mhutchie added a commit that referenced this issue May 30, 2021
@mhutchie
Copy link
Owner

This will be available in v1.31.0.

If you'd like to use it before the next release, you can download v1.31.0-beta.2, and install it following the instructions provided here.

@LinFor
Copy link
Author

LinFor commented May 30, 2021

Thanks!

homsai pushed a commit to homsai/vscode-git-graph that referenced this issue Sep 7, 2022
@AlexeySmolenchuk
Copy link

I think I've put a similar request here #791 but also mentioned stashes.
Would it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Feature request
Projects
None yet
Development

No branches or pull requests

3 participants