페이지 트리

버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

목차

Git username, password 저장하기

영구 저장 방법

  • ~/.git-credentials 파일에 plain text로 저장됨 (파일에 대해 access 권한 관리 필요)
코드 블럭
$ git config --global credential.helper store 

임시 저장 방법

  • 캐시에 임시 저장됨
코드 블럭
$ git config credential.helper cache <timeout>


Commit 개수 얻기

To get a commit count for a revision (HEADmaster, a commit hash):

코드 블럭
$ git rev-list --count <revision>

예)

코드 블럭
$ git rev-list --count branch-1
$ git rev-list --count 3930540717b

How to authenticate user via git pre-receive hook

코드 블럭