Git username, password 저장하기
영구 저장 방법
$ git config --global credential.helper store |
임시 저장 방법
$ git config credential.helper cache <timeout> |
To get a commit count for a revision (HEAD
, master
, a commit hash):
$ git rev-list --count <revision> |
예)
$ git rev-list --count branch-1 $ git rev-list --count 3930540717b |
read old new ref author=$(git log -1 $ref --pretty=%an) committer=$(git log -1 $ref --pretty=%cn) echo author:$author echo committer:$committer |