본문 바로가기
LEARN/OS

[UBUNTU] 우분투 Git(깃) 설치 및 설정 확인 그리고 삭제 명령어

by 아이엠제니 2023. 8. 22.

 

 


 

 

1. 깃 설치

 

1. 패키지 업데이트
suto apt update

 

 

 

2. 깃 설치
sudo apt install git

 

 

 

3. 설치 확인
git --version

 

 

 

4. 깃 설정
git config --global user.name "jelog"
git config --global user.email "jelog@mail.com"

 

 

 

2. 깃 설정 확인

 

1. 사용자 정보 확인
git config user.name
git config user.eamil

 

 

 

2. 전역 설정 확인
git config --global --list

 

 

 

3. 로컬 설정 확인
git config --local --list

 

 

 

4. 리모트 저장소 확인
git remote -v

 

 

 

5. 깃 구성 파일 확인
cat ~/.gitconfig

 

 

 

 

 

3. 깃 삭제

 

1. 깃 패키지 제거
sudo apt remove git

 

 

 

2. 설정 및 데이터 파일 제거
sudo rm -rf ~/.gitconfig

 

 

 

3. 설치 확인
git --version
300x250