초보자를 위해 git에서 기본 편집기를 변경하는 방법

3311 단어 vimtutorialgit

When you decide to use a version control system (VCS) into your project using git And start creating the project
folder and writing the first commands,




첫 번째 저장소 생성



$ git init




Now we need to add our file into the Repository



$ git add test_code.js




Now the test_code.js file in the Staging area ( Index )




작업 트리의 상태를 얻으려면



$ git status




The last step we need to run $ git commit to captures a snapshot of the project's currently staged changes.



$ git commit




Then the default text editor will run you need to write i letter to start typing the commit message and once you have done you need to click on esc button and input :wq to save and quite ,





Here's the problem if you didn’t familiar with the default Vim or nano text editor you need to add this command to use your favourite text editor,
$ git config --global core.editor "Atom"
i'll use Atom as a text editor.

finally Run this command git commit --amend to recover the commit message by input R then press Enter and run the $ git commit again







행운과 행복한 배움

좋은 웹페이지 즐겨찾기