1. 程式人生 > >git log 檢視某檔案的修改歷史

git log 檢視某檔案的修改歷史

GIT-LOG(1)                                        Git Manual                                       GIT-LOG(1)



NAME
       git-log - Show commit logs

SYNOPSIS
       git log [<options>] [<revision range>] [[--] <path>...]


DESCRIPTION
       Shows the commit logs.

       The command takes options applicable to the git rev-list command to control what is shown 
and how, and options applicable to the git diff-* commands to control how the changes each commit introduces are shown. OPTIONS --follow Continue listing the history of a file beyond renames (works only for a single file). --no-decorate, --decorate[=short|full|no] Print out the ref names of any commits that are shown. If short is specified, the ref name prefixes refs/heads/, refs/tags/
and refs/remotes/ will not be printed. If full is specified, the full ref name (including prefix) will be printed. The default option is short. :