본문 바로가기
Development Solutions/Git

[Git] push/pull automatic login (push/pull 자동 로그인)

by Dev Diary Hub 2022. 9. 3.
반응형

[Git]

push/pull automatic login

(push/pull 자동 로그인)

 

 

- 계정 설정 (Account Settings)

name 설정 git config --global user.name "{name}" 프로젝트 마다 다른 name 사용하려면 --global 옵션 제거
email 설정 git config --global user.email {email} 프로젝트 마다 다른 email 사용하려면 --global 옵션 제거
설정 확인 git config --list  

 

- Git 계정 정보 저장 (Storing Git Account Information)

Credential 정보 저장1 git config credential.helper store 현재 레포지터리에 대해서만 영구 적용
Credential 정보 저장2 git config credential.helper store --global 모든 프로젝트에 영구 적용
Cache 저장 git config credential.helper cache 기본 15분 동안 적용
git config credential.helper 'cache --timeout=${time}' time만큼 시간 제한 적용

반응형