티스토리 뷰

728x90
반응형

1.  VScode에서 commit시 vi모드 해제

- `git commit` 명령어를 실행 시, 터미널에서 vi 모드로 열리는게 불편했다. 이를 VSCode에서 수정하도록 config 설정을 해준다.

# PATH 등록이 되었는지 확인
code --verison

# 안되어있을 경우, MAC에선  Command + Shift + P
# Shell을 입력 후, Shell Command: Install 'code' command in PATH를 선택

# editor 변경
git config --global core.editor "code --wait"

# 정상등록 되었는지 확인
git config --global -e

 

2. git log default Pager 설정(vi 모드 해제)

- `git log` 명령어 작성 시, default로 vi 모드로 실행된다. cat처럼 바로 스크롤하면서 볼 수 있도록 아래의 명령어를 작성해준다.

git config --global core.pager cat

 

3. Alias 설정

- git 명령어 간소화

git config --global alias.co checkout                                                                                        ✔  8s   12:47:40  

git config --global alias.br branch                                                                                                 ✔  12:50:39  

git config --global alias.st status                                                                                                 ✔  12:50:52  

git config --global alias.cm commit

 

728x90
반응형
댓글