Quantcast
Channel: Why do I get an error when I try to git commit --amend - Stack Overflow
Browsing latest articles
Browse All 7 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


Answer 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 Article

Why 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
Browsing latest articles
Browse All 7 View Live


Latest Images