mark340
착하게살자
mark340
전체 방문자
오늘
어제
  • 분류 전체보기 (98)
    • 백준 (11)
    • 알고리즘 (1)
    • Javascript (17)
    • CS (18)
    • 기타 (9)
    • AI (1)
    • Angular (2)
    • Linux (14)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • MySQL
  • oauth
  • Closure
  • JavaScript
  • parsing

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
mark340

착하게살자

Linux

git config setting / store credential

2023. 9. 23. 13:00

git config란, git에 대한 설정 정보이다.


  • git 전체 config 리스트 보기
git config --global --list
  • git config 설정하기 (이름, 이메일)
git config --global user.name "이름"
git config --global user.email "이메일"

-> global : 전역적인 설정

  • git config 삭제하기
git config --unset --global user.name
git config --unset --global user.email

 

 

 

Credential.helper - Cache


id, password를 짧은 시간동안 반복적으로 입력하는 일을 피할 때 사용

git config --global credential.helper cache

-> 위의 'git config --global --list'를 입력해보면 'credential.helper=cache'라고 리스트에 추가된다.

-> 한 번 cache를 하면 15분동안 메모리에서 유지하는데, 시간을 연장하려면 다음의 명령어를 입력한다.

 

git config credential.helper 'cache --timeout=3600'

-> 위와 같이 설정해두면 3600초, 즉 1시간동안 캐싱을 한다.

 

 

 

 

Credential.helper - Store


id, password를 Disk에 저장하고 유지하고싶은 경우에 사용

git config --global credential.helper store

-> 위의 'git config --global --list'를 입력해보면 'credential.helper=store'라고 리스트에 추가된다.

-> 한 번 로그인된 정보는 자동으로 저장되며 다음부터 묻지 않게 된다.

-> 저장된 로그인 정보는 ~/.git-credentials 경로에 저장된다.

저작자표시 (새창열림)

'Linux' 카테고리의 다른 글

How to Run Multi-Container Applications with Docker Compose (Docker Compose Install)  (0) 2023.08.30
[Linux] 비밀번호 없이 SSH 원격 접속하기 (PEM Key 생성)  (0) 2023.08.29
Linux - df, du 명령어 정리 (파일, 디스크 용량 확인)  (0) 2023.08.29
macOS: 맥에서 SSH 키 생성하고 사용하기  (0) 2023.08.13
S3 CORS 헤더 관련 이슈 해결방법 (html2canvas, lottie)  (0) 2023.07.24
    'Linux' 카테고리의 다른 글
    • How to Run Multi-Container Applications with Docker Compose (Docker Compose Install)
    • [Linux] 비밀번호 없이 SSH 원격 접속하기 (PEM Key 생성)
    • Linux - df, du 명령어 정리 (파일, 디스크 용량 확인)
    • macOS: 맥에서 SSH 키 생성하고 사용하기
    mark340
    mark340
    착하게삽시다

    티스토리툴바