Git

Git > 환경 설정

Krevis 2024. 1. 30. 08:15

 

명령어 여러 개 묶어 사용

git tag; git branch

 

 

환경 설정

변수 조회

git config -l

변수 추가

cd 저장소폴더

로컬 사용자

git config user.name "사용자명"

git config user.email "이메일주소"

 

한글 입력 시 오류 발생

이메일 주소가 깃이 개발자를 구별하는 고유 키 값이다

글로벌 사용자

git config --global user.name "사용자명"

git config --global user.email "이메일주소"

변수 삭제

git config --unset 변수명

깃 상태를 칼러로 보기

git config --global color.ui auto

설정 파일 확인

로컬 설정 파일

로컬 저장소 폴더 아래의 .git/config

글로벌 설정 파일

사용자 홈 폴더 아래의 .gitconfig

별칭 사용

git config --global alias.show-graph 'log --graph --pretty=oneline'

git show-graph