GitHub Personal access tokens

비밀번호 그만 물어보기

git config credential.helper store

변경 추적

git config log.follow true

구찮지

git config --global user.email "everlearningemployee@gmail.com"
git config --global user.name "빨강달"

내부 참조(reference)

Git은 모든 브랜치, 태그, 리모트 참조 등을 .git/refs/ 디렉토리 아래에 계층적으로 저장한다. 주요 네임스페이스는 다음과 같다:

  • refs/heads/: 로컬 브랜치 (예: refs/heads/mainmain 브랜치).
  • refs/tags/: 태그 (예: refs/tags/v1.0v1.0 태그).
  • refs/remotes/: 리모트 레포지토리의 브랜치 (예: refs/remotes/origin/mainorigin 리모트의 main 브랜치).
  • 기타: refs/notes/, refs/stash/ 등 특수 참조도 존재.

사용예

git checkout refs/heads/main
git show-ref
  • Kaniko--context=git://github.com/username/repository.git#refs/heads/main:subfolder