github locks up mac terminal when using pull command

后端 未结 8 1682
清酒与你
清酒与你 2020-12-12 08:45

I\'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         


        
相关标签:
8条回答
  • 2020-12-12 09:22

    I fixed this problem by executing following steps

    1. Remove #MERGE_MSG#

      rm .git/\#MERGE_MSG#

    2. Remove MERGE_HEAD

      rm .git/MERGE_HEAD

    Additionally, I explicitly set git's editor to an editor that I am familiar with vim (you can set nano)

    `git config --global core.editor "vim"`
    
    0 讨论(0)
  • 2020-12-12 09:23

    Run this command

    git config --global core.editor "gedit"
    

    Add your message in this file and save it. Go back pull now.

    0 讨论(0)
提交回复
热议问题