Edit text trong màn hình Terminal (cú pháp cơ bản)

Khi mắc lỗi khi pull trên git. có thể sẽ hiện thị lỗi như bên dưới khiến ta băn khoan không biết làm thế nào để thoát ra

m in the process of learning github on mac (command-line) and whenever I do git pull origin master i get this

# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit. ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ".git/MERGE_MSG" 7L, 293C

the terminal seems to lock up and doesn't allow me to enter anything immediately, then when it finally does allow me to enter text it seems like it doesn't recognize git commands.

Is this a bug in git or am i missing something?

*) ở đây là cách để thoat ra khi găp trường hợp này, và đây cũng là cú pháp cơ bạn trong vim editing của Terminal

    1. ấn i để thực hiện thêm text vào.

    2. Sau khi ấn i thì chúng ta có thể nhập text vào file .

    3. ấn esc để quay trở lại với màn hinh command.

    4. Sau đó nhập :w và ấn enter để save file lại.

    5. Cuối cùng nhập :q sau đó enter để kết thúc thoat ra ngoai màn hinh edit quay trơ về màn hinh lênh bạn đầu trong teminal.