I did by mistake more than 100 amend commits. How can i convert them to usual commits? Or at least to get git log with difference for each amend commit?
I can see only difference for all amend commits at once if i run gitk or git log -p now. i can see all amend commits hashes but only with reflog. I can also see difference with git diff amend_hash1 amend_hash2 but not in gitk or git log -p. They jump over these amends although they are linked correctly in .git/logs/refs/heads/master and .git/logs/HEAD
i just ran git commit --amend 100 times, one time for each of 100 changes. Then I got one big commit for all 100 changes when i ran git commit without amend.
I found how to undo only one amend commit...
They're all in the reflog of the repo that did the amending, and they're completely ordinary commits so you can e.g.
git showthem to see what changes they made andgit cherry-pickthem to nab those changes and so on. See thegit reflogdocs, and look in e.g..git/logs/refs/heads/masterto see what it's wrangling.