본문 바로가기
목차
utils/git and github

[git] git message 확인 방식: pager 사용여부 설정

by ds31x 2024. 1. 30.
728x90
반응형

pager.branch true

pager를 사용할 경우,

message가 마치 man page를 띄운 것처럼 따로 보여지게 된다.

기본으로 less를 사용함.

이렇게 보는 것이 편한 경우도 있지만, 내용을 확인하고 q를 입력하여 닫고 난 이후 다시 해당 내용을 기억해야 함.

그냥 보고 입력을 해야하는 경우라면 매우 귀찮다.

 

이 경우엔 pager를 사용하지 않도록 처리를 해주면 된다.

 

참고: 2023.09.30 - [Linux] - [Linux] 파일 내용확인하기: cat, bat, less, more, head, tail

 

[Linux] 파일 내용확인하기: cat, bat, less, more, head, tail

cat, bat, head, tail대표적인 text processing utilities로 file viewing commands라고도 불림.less, morepager라고 불리는 utilities로 긴 출력을 화면에 페이지 단위로 나누어 보여주는 역할을 수행함.cat, batcat (concatenate

ds31x.tistory.com

 


pager.branch false

다음의 명령어는 gti branch 수행할 때 pager 를 사용하지 않도록 해줌.

git config --global pager.branch false

 

pager로 수행하여 볼 경우 다음의 형태로 전체 터미널에서 branch만 확인 가능하나

 

위의 명령어로 pager를 사용하지 않을 경우, 예전처럼 다음과 같이 terminal에서 명령어 다음에 확인 가능함.


같이보면 좋은 자료들

2023.09.30 - [Linux] - [Linux] 파일 내용확인하기: cat, bat, less, more, head, tail

 

[Linux] 파일 내용확인하기: cat, bat, less, more, head, tail

cat, bat, head, tail대표적인 text processing utilities로 file viewing commands라고도 불림.less, morepager라고 불리는 utilities로 긴 출력을 화면에 페이지 단위로 나누어 보여주는 역할을 수행함.cat, batcat (concatenate

ds31x.tistory.com

2024.05.27 - [utils/git and github] - [Git] pager 옵션 조정

 

[Git] pager 옵션 조정-상세

시작하기 앞서: Pager란 무엇인가?Pager는 명령줄 인터페이스에서 긴 출력을 화면에 페이지 단위로 나누어 보여주는 프로그램을 가르킴.Pager를 사용하면 파일이나 명령어 출력 결과를 스크롤하며

ds31x.tistory.com


2024.05.21 - [utils/git and github] - [Git] git 설치 후 우선 해줘야 하는 작업들

 

[Git] git 설치 후 우선 해줘야 하는 작업들

git설치는 conda를 이용해도 된다.conda intstall gitLocal Repository를 위한 기본 설정 작업들Git: autocrlf 설정: 개행문자 — Dsaint31's blog (tistory.com) Git: autocrlf 설정: 개행문자Git: autocrlf 설정: 개행문자(new line

ds31x.tistory.com

 

728x90