Skip to content

Instantly share code, notes, and snippets.

@anlutro
Created May 30, 2016 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anlutro/67e0cec1a6a419e6d44131b0bc1deff6 to your computer and use it in GitHub Desktop.
Save anlutro/67e0cec1a6a419e6d44131b0bc1deff6 to your computer and use it in GitHub Desktop.
git revert with --author
% git init
Initialized empty Git repository in /home/andreas/tmp/gittest2/.git/
% echo 'test' > test
% git add test
% git commit -m 'test commit'
[master (root-commit) 8d25641] test commit
1 file changed, 1 insertion(+)
create mode 100644 test
% echo 'test' >> test
% git add test
% git commit -m 'second test commit'
[master 88ecf32] second test commit
1 file changed, 1 insertion(+)
% git revert 88ecf32 --author 'test'
fatal: BUG: expected exactly one commit from walk
@seangibat
Copy link

is this a bug? do you know a solution, assuming I can't set the system git config? I can't find documentation anywhere else online.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment