Learn Git by Building an SQL Reference Object

Hello. I`m stuck on “git revert” stage. When i submit the command, it says "hint: Waiting for your editor to close the file… ". Sometimes it happend before, but after resseting the step, test passed. At this point it does nothing - dont revert and dont open nano as mentioned in task. Thanks

you should be able to kill the process with Ctrl+C and then try again

It doesn`t help, revert not working and retry is give the same result

Ok, i find out. whats wrong. Its VSCode. After git revert HEAD, you should go to the git tab on side panel and accept commit, bc fit opens not nano but vscode as editor for commit message (nano is a default editor in git globals).

Also. to avoid this problen in future tasks, you should set env variable like so:

export GIT_EDITOR=nano

image

Hi, this solution doesn’t work form me. I’ve tried typing git commit -m “feat: add unique reference” in the terminal or adding it as commit message when clicking those blue Commit buttons, but nothing works. Buttons change from Commit to Publish Branch but when I type git revert HEAD, Nano still won’t open. I only get a comment under the CodeRoad text that says “You should have the correct last commit message.” Typing export GIT_EDITOR=nano doesn’t work either. Can anyone help? I can’t finish this lesson.