# Add \`editor::RevertSelectedHunks\` to revert git diff hunks in the editor \(\#9068\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/347178039c20841105615b02d5deb129730c05e0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 347178039c20841105615b02d5deb129730c05e0

Requested commit: 347178039c20841105615b02d5deb129730c05e0

Commit: 347178039c20841105615b02d5deb129730c05e0

Tree: bed2af5d9b3be4a404160532a8eeeceb4953bd19

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Add `editor::RevertSelectedHunks` to revert git diff hunks in the editor (#9068)

https://github.com/zed-industries/zed/assets/2690773/653b5658-e3f3-4aee-9a9d-0f2153b4141b

Release Notes:

- Added `editor::RevertSelectedHunks` (`cmd-alt-z` by default) for
reverting git hunks from the editor
```

## Parents

- [6a7a3b257a960174b6ecf90fcafa20095d8ed8d1](https://git.cafe/gitcafe/zed/commit/6a7a3b257a960174b6ecf90fcafa20095d8ed8d1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/347178039c20841105615b02d5deb129730c05e0?format=markdown)
