I often mistype a command. So I will type this
sublimetext myfile.txt instead of
git add myfile.txt When I do this, I hit up to restore the last command. But after doing so, my cursor is at the end of the previously typed line. Is there a keyboard short cut to jump back to the prompt?
git add, then pressEsc,.- it will typemyfile.txt(the last argument of previous command) automatically.