Stuck at GIT 7/9


#1

Hello, I'm stuck at git 7/9. I did 6/7 sucessfully

https://www.codecademy.com/courses/learn-git/lessons/git-workflow/exercises/git-commit?action=lesson_resume

but the command prompt shows the next:

essor McGonagit.

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
(END) (here's a block blinking)

And I cannot type anyting. I tried to type "exit", pressed ESC, finding a way to be able to type without success. It isthe exact thing that shows my screen.

Thanks in advance.

[SOLVED] IGNORE THIS


#2

If you don't supply a commit message then git opens up your editor which here appears to have defaulted to vim (my text editor of choice)

Vim has modes, you're currently in normal mode. To enter text you'd enter insert mode by pressing the i key. Hitting esc while in insert mode brings you back to normal mode, and typing :wq (note colon at the start) while in normal mode saves and quits, :q! discards changes and quits

To change editor one sets the EDITOR environment variable, for example by adding this in .bashrc:

export EDITOR=nano

an editor can also be set for just git (globally or per-repository) with git's core.editor setting


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.