문제 : visual studio code에서 commit이 안됨 . 다음과 같은 경고창이 뜸
vscode make sure you configure your 'user.name' and 'user.email' in git
방법 1 : user.name과 user.email을 설정하기 위해서 vscode terminal에 다음 명령을 입력했지만 실행되지 않음
$ git config –global user.name “name”
$ git config –global user.email "email"
vscode terminal 'git'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그 램, 또는 배치 파일이 아닙니다.
방법 2 : git bash 터미널을 추가하고자 함
settings.json 파일을 열어 git bash의 경로 설정하였지만 vscode의 terminal에 git bash 나타나지 않음
방법 3 : vscode로 작업하고자 하는 폴더 > 우클릭 > git bash 에서 $ code 입력
해결! 아래 링크 참고
[VSCODE] 비쥬얼스튜디오코드에서 깃허브 배쉬 사용, 설치하기. (Visual Studio Code with Git bash)
비쥬얼 스튜디오 코드의 터미널창에서 깃배쉬를 사용해보자. 1. Ctrl키와 함께 , 키를 눌러준다. 2. terminal.integrated.shell.windows 를 입력 3. Edit in settings.json을 클릭 4. bash.exe가 있는 폴더 위치로 코드
0ver-grow.tistory.com
'개발 공부 > 백엔드' 카테고리의 다른 글
Django Rest Framework vs. GraphQL (chat GPT 검색) (0) | 2023.05.30 |
---|---|
관리자 권한으로 실행한 VS Code에서 git 연결 (0) | 2023.04.25 |
bitnami WAMP 서비스 종료 - Apache 설치 (0) | 2023.04.16 |