사용자 도구

사이트 도구


git:credential

문서의 이전 판입니다!


git credential

http(s) 기반 인증 기본 사용자명 지정

[credential "https://gist.github.com"]
        username = <사용자명>

Password Cache

  • HTTP(S) 프로토콜의 경우 명령행에서는 비밀번호 저장해두기가 곤란하다. 그래서 캐시를 사용한다.
  • Linux에서는 다음 처리로 간편하게 캐시가 끝난다.
    # 기본 캐시 시간 15분
    git config --global credential.helper cache
     
    # 캐시 시간 지정
    git config --global credential.helper 'cache --timeout=7200'

GIT_ASKPASS, SSH_ASKPASS

  • helper 대신 GIT_ASKPASS, SSH_ASKPASS를 사용할 경우에는 username 이 명시돼 있어야 한다. 예) https://xxx@git.com/path/to/repo
  • 그렇지 않으면 GUI 로 사용자명을 묻는 화면이 뜨면서 일부 통합 툴에서 문제가 발생했다.

libsecret 기반 gnome-keyring credential

sudo apt-get install libsecret-1-0 libsecret-1-dev
cd /usr/share/doc/git/contrib/credential/libsecret
sudo make
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret

SSH 인증 저장소

Password with Gnome-Keyring : Deprecated from 2014

Password with kde

Windows

참조

git/credential.1600143982.txt.gz · 마지막으로 수정됨: 2020/09/15 13:26 저자 kwon37xi