I'm new to bash. After I've staged files to my local git repository and typed in the commands to commit:
git commit -m "Descriptive message" Git (or is it terminal?) stops dead, showing the
> symbol. It won't accept further commands and I have to exit the session and start a new one. Why does this happen?
22 Answers
Do you use quotes or some other special bash character inside your commit message? Be sure that it is a well-formed string. Try using apostrophes around the message.
The > means bash is waiting for another line of input, so you probably didn't close the commit message properly.
If still stuck, please post the exact command you are using.
2How I can exit from this?
Гостевой@DESKTOP-CGMJM55 MINGW64 /c/git/test_repo (main) $ git push origin main: Git tag <tag's_name> <commit's_hash>/HEAD@{<commit'it reflog` when you'll know commit's hash:r commit after using `gi fatal: invalid refspec 'HEAD@{0}:' Гостевой@DESKTOP-CGMJM55 MINGW64 /c/git/test_repo (main) $ Гостевой@DESKTOP-CGMJM55 MINGW64 /c/git/test_repo (main) $ Git tag <tag's_name> <commit's_hash>/HEAD@{<commit's_num>} > exit > exit() > > q > eq > > > > sdf 2