Skip to content

깃 강의 git commit 에 대한 질문 #151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
minheeseo opened this issue Jan 15, 2018 · 4 comments
Closed

깃 강의 git commit 에 대한 질문 #151

minheeseo opened this issue Jan 15, 2018 · 4 comments

Comments

@minheeseo
Copy link

안녕하세요. 깃 강의를 듣다가 또 모르는 점이 생겼는데 인터넷을 찾아봐도 잘 모르겠어서 여기에 또 질문하게 되었습니다.
강의에서는 git commit이란 코멘드를 입력하면 그 다음에 원하는 문구를 insert하게 되어있는데요. 제 terminal에서는 git commit이라고 치면
"error: unable to start editor 'gedit'
Please supply the message using either -m or -F option." 이런 에러가 뜹니다.
git commit -m "update new file" 이런식으로 코멘드를 입력하면 코밋이 잘 되고요.. 왜 git commit명령어는 실행되지 않는데 git commit -m "description" 이 명령어는 잘 실행이 될까요? 에러에서 gedit이랑 에디터를 설치하라는 것 같은데 찾아봐도 도통 모르겠네요. 도움 주셔서 감사합니다.

@progh2
Copy link
Collaborator

progh2 commented Jan 15, 2018

안녕하세요~ 반갑습니다. ^^
git commit 으로 명령을 실행하면 메시지 작성을 위한 텍스트 에디터가 실행됩니다.
이것은 git 기본 설정이 어떻게 되었냐에 따라서 어떤 에디터가 실행되는지가 다른데요,
gedit는 리눅스에서 사용하는 메모장 같은 프로그램인데 그게 설치가 되어 있지 않아서
발생하는 에러입니다. gedit 설명

gedit로 하고 싶으시다면 사용하시는 리눅스에서 관리자 권한으로 gedit를 설치하세요.
우분투/민트/데비안이라면

apt-get install gedit

레드햇 계열이면

yum install gedit

로 설치하시면 됩니다.

아니면 선호하는 에디터(예: vim 이나 nano)가 있으시다면
Git 편집기 변경 <-- 이 링크를 참고하셔서 변경하시면 됩니다.
좀 더 다양한 검색 링크 내용도 찾아서 봐보세요~

즐거운 시간 보내길 바랍니다. =D

@minheeseo
Copy link
Author

@progh2 안녕하세요. 답변 너무 감사드립니다. follow-up question이 있는데요. 제가 리눅스가 아니라 맥을 쓰고 있거든요. 맥의 경우에도 progh2님 답변이 똑같이 적용되는 건가요? 감사합니다!

@progh2
Copy link
Collaborator

progh2 commented Jan 15, 2018

맥이면 서브라임텍스트나 아톰 등 다른 자주 사용하시는 에디터로 설정하시는 것이 좋겠습니다.
맥에서 쓰는 gedit도 있지만 주로 사용하시는 에디터(atom 등)를 쓰시는게 좋겠습니다. ^^

참고링크

@minheeseo
Copy link
Author

@progh2 그렇군요 문제가 잘 해결되었습니다. 너무 감사합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants