Answer by LeGEC for Why do I get an error when I try to git commit --amend
Check if you don't have a custom hook which triggers on commit.
View ArticleAnswer by GoZoner for Why do I get an error when I try to git commit --amend
Works for me, both with and without modified, untracked files.$ echo 'a'> a; git add -A; git commit -m 'a'$ echo 'b'> b; git add -A; git commit -m 'b'$ git log --oneline63f2dd1 ba0b364a a$ git...
View ArticleAnswer by stdcall for Why do I get an error when I try to git commit --amend
Do git stash. Then do git commit --amend.After that do git stash pop.
View ArticleAnswer by Abizern for Why do I get an error when I try to git commit --amend
Alternatively, you could just do an interactive rebase on the parent of the current commitgit rebase -i head~And then choose the reword option to change the commit message.
View ArticleAnswer by hobbs for Why do I get an error when I try to git commit --amend
Try git commit --amend --only, and if that doesn't work then just try git stash; git commit --amend ; git stash pop. I'm not sure what state you're in here.
View ArticleAnswer by poke for Why do I get an error when I try to git commit --amend
git commit --amend will work just like git commit just that it will recycle your old commit. So what this means is that it will expect that there are actually some changes in the index, ready to be...
View ArticleWhy do I get an error when I try to git commit --amend
I wanted to modify the commit message on a commit I just made, so I tried to do:git commit --amend(as I normally do), but I got an error:Unable to find modified files; please check git statusNow this...
View Article