git 인증정보 초기화 (리눅스 서버 기준)

//-------------------------------
// git 쪽에 저장된 사용자 초기화 및 재설정
//-------------------------------
명령어 긁어서 한번에 실행
▽▽▽▽▽▽▽▽▽▽▽▽▽▽▽▽▽
#// .git 폴더 속의 계정정보 삭제 
git config --local --unset credential.helper 
#// 전역 계정정보 삭제      (서버에서 git 설정시 이걸로 설정하지 마라!!)
git config --global --unset credential.helper
#// 시스템쪽 계정정보 삭제   (서버에서 git 설정시 이걸로 설정하지 마라!!)
git config --system --unset credential.helper
#// 저장된 user 정보 삭제
git config --local --unset user.name
git config --local --unset user.email
git config --global --unset user.name
git config --global --unset user.email
git config --system --unset user.name
git config --system --unset user.email

#// .git 폴더 속으로 계정정보 저장
git config --local credential.helper store
#// 상태 확인 => store 로 나와야함
git config --get credential.helper

#// 새로 유저 설정
git config --local user.name "AACC"
git config --local user.email "AA@BB.com"

#//비밀번호저장소 삭제
rm -f ~/.git-credentials
△△△△△△△△△△△△△△△△△

#// 설정확인
git config --local -l
git config -l



윈도우의 경우
=> 제어판\사용자 계정 및 가족 보호\자격 증명 관리자\WIndows 자격 증명\일반 자격 증명
     -> 위 위치에서 대상 자격증명 삭제.
git config --global credential.helper wincred     //윈도우 지원 자격증명에 저장

맥의 경우
=> https://skuld2000.tistory.com/148
댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
목록형 📷 갤러리형
제목
[기본형] HTML (with 부트스트랩5.3 , jquery 3.7, vue.js)
유용한 리눅스(LINUX) 명령어
[공지] 기술 게시판
4.28
4.29
4.30
5.1
5.2
5.3
5.4
5.5
5.6
5.7
5.8
5.9
5.10
5.11
5.12
5.13
5.14
5.15
5.16
5.17
5.18
5.19
5.20
5.21
5.22
5.23
5.24
5.25
5.26
5.27
5.28
5.29
5.30
5.31
6.1