How can I commit files with git?

前端 未结 9 1724
慢半拍i
慢半拍i 2020-12-07 12:21

None of the tutorials will help!
They all do that thing where they just assume I know what to do..

Currently, my terminal window starts with..

#          


        
9条回答
  •  借酒劲吻你
    2020-12-07 12:30

    It sounds as if the only problem here is that the default editor that is launched is vi or vim, with which you're not familiar. (As quick tip, to exit that editor without saving changes, hit Esc a few times and then type :, q, ! and Enter.)

    There are several ways to set up your default editor, and you haven't indicated which operating system you're using, so it's difficult to recommend one in particular. I'd suggest using:

     git config --global core.editor "name-of-your-editor"
    

    ... which sets a global git preference for a particular editor. Alternatively you can set the $EDITOR environment variable.

提交回复
热议问题