gitlog操作

                         SEARCHING - 搜索

  /pattern          *  Search forward for (N-th) matching line.
                                             - 向前搜索第n个匹配行。
  ?pattern          *  Search backward for (N-th) matching line.
                                             - 向后搜索第n个匹配行。
  n                 *  Repeat previous search (for N-th occurrence).
                                             - 重复前面的搜索(针对第n次出现)。
  N                 *  Repeat previous search in reverse direction.
                                             - 反向重复前面的搜索。
  ESC-n             *  Repeat previous search, spanning files.
                                             - 重复前面的搜索,生成文件。
  ESC-N             *  Repeat previous search, reverse dir. & spanning files.
                                             - 重复前面的搜索,反向目录。并生成文件。
  ESC-u                Undo (toggle) search highlighting.
                                             - 撤销(切换)搜索高亮显示。
  &pattern          *  Display only matching lines
                                             - 只显示匹配行
        ---------------------------------------------------
        A search pattern may be preceded by one or more of:
        一个搜索模式的前面可以有一个或多个:
        
        ^N or !  Search for NON-matching lines. 
                            - 搜索不匹配的线。
        ^E or *  Search multiple files (pass thru END OF FILE). 
                            - 搜索多个文件(通过文件的结尾)。
        ^F or @  Start search at FIRST file (for /) or last file (for ?).
                            - 从第一个文件(for /)或最后一个文件(for ?)开始搜索。
        ^K       Highlight matches, but don't move (KEEP position).
                            - 高亮匹配,但不要移动(保持位置)。
        ^R       Don't use REGULAR EXPRESSIONS.
                            - 不要使用正则表达式。
 ---------------------------------------------------------------------------

                           JUMPING - 跳转

  g  <  ESC-<       *  Go to first line in file (or line N).
                                         - 转到文件的第一行(或第N行)。
  G  >  ESC->       *  Go to last line in file (or line N).。
                                         - 转到文件的最后一行(或第N行)。
  p  %              *  Go to beginning of file (or N percent into file).
                                         - 转到文件的开头(或N %进入文件)。
  t                 *  Go to the (N-th) next tag.
                                         - 到第n个标签。
  T                 *  Go to the (N-th) previous tag.
                       - 转到前面的(n个)标签。
  {  (  [           *  Find close bracket } ) ].
                                         - 发现右括号
  }  )  ]           *  Find open bracket { ( [.
                                         - 发现左括号
  ESC-^F <c1> <c2>  *  Find close bracket <c2>.
                                         - 发现右括号
  ESC-^B <c1> <c2>  *  Find open bracket <c1> 
                                         - 发现左括号
        ---------------------------------------------------
        Each "find close bracket" command goes forward to the close bracket 
          matching the (N-th) open bracket in the top line.
           - 每个“查找右括号”命令都将前进到与第n个左括号相匹配的右括号。
        Each "find open bracket" command goes backward to the open bracket 
          matching the (N-th) close bracket in the bottom line.
           - 每个“查找左括号”命令将返回到与底线(第n个)右括号匹配的左括号。

  m<letter>            Mark the current position with <letter>.
                                         - 用<letter>标记当前位置
  '<letter>            Go to a previously marked position.
                                         - 转到先前标记的位置。
  ''                   Go to the previous position.
                                         - 回到以前的位置。
  ^X^X                 Same as '.
                                         - 和'.一样
        ---------------------------------------------------
        A mark is any upper-case or lower-case letter.
        Certain marks are predefined:
        标记是任何大写或小写字母。某些标记是预定义的:
             ^  means  beginning of the file
             ^ 意思是一个文件的开头
             $  means  end of the file
             $ 意思是一个文件的结尾
 ---------------------------------------------------------------------------

                        CHANGING FILES - 修改文件

  :e [file]            Examine a new file.
                                         - 检查一个新文件。
  ^X^V                 Same as :e.
                                         - 和:e.一样
  :n                *  Examine the (N-th) next file from the command line.
                                         - 从命令行检查下一个文件。
  :p                *  Examine the (N-th) previous file from the command line.
                                         - 从命令行检查前面的(第n个)文件。
  :x                *  Examine the first (or N-th) file from the command line.
                                         - 检查命令行中的第一个(或第n个)文件。
  :d                   Delete the current file from the command line list.
                                         - 从命令行列表中删除当前文件。
  =  ^G  :f            Print current file name.
                                         - 打印当前文件名。
 ---------------------------------------------------------------------------

                    MISCELLANEOUS COMMANDS - 各种各样的命令

  -<flag>              Toggle a command line option [see OPTIONS below].
                                         - 切换命令行选项[参见下面的选项]。
  --<name>             Toggle a command line option, by name.
                                         - 按名称切换命令行选项。
  _<flag>              Display the setting of a command line option.
                                         - 显示命令行选项的设置。
  __<name>             Display the setting of an option, by name.
                                         - 按名称显示选项的设置。
  +cmd                 Execute the less cmd each time a new file is examined.
                                             - 每次检查新文件时执行less cmd。
  !command             Execute the shell command with $SHELL.
                                         - 使用$ shell执行shell命令。
  |Xcommand            Pipe file between current pos & mark X to shell command.
                                         - 管道文件之间的当前pos和标记X shell命令。
  s file               Save input to a file.
                                         - 将输入保存到文件中。
  v                    Edit the current file with $VISUAL or $EDITOR.
                                         - 用$VISUAL或$EDITOR编辑当前文件。
  V                    Print version number of "less".
                       - 打印“less”版本号。
 ---------------------------------------------------------------------------

                           OPTIONS - 选项

        Most options may be changed either on the command line,
        or from within less by using the - or -- command.
        大多数选项可以在命令行上更改,也可以通过使用 - or -- 命令从内部更改。
        Options may be given in one of two forms: either a single
        character preceded by a -, or a name preceded by --.
        选项可能以两种形式之一给出:单个字符前加 --,或名称前加 -。

  -?  ........  --help
                  Display help (from command line).
  -a  ........  --search-skip-screen
                  Search skips current screen.
  -A  ........  --SEARCH-SKIP-SCREEN
                  Search starts just after target line.
  -b [N]  ....  --buffers=[N]
                  Number of buffers.
  -B  ........  --auto-buffers
                  Don't automatically allocate buffers for pipes.
  -c  ........  --clear-screen
                  Repaint by clearing rather than scrolling.
  -d  ........  --dumb
                  Dumb terminal.
  -D [xn.n]  .  --color=xn.n
                  Set screen colors. (MS-DOS only)
  -e  -E  ....  --quit-at-eof  --QUIT-AT-EOF
                  Quit at end of file.
  -f  ........  --force
                  Force open non-regular files.
  -F  ........  --quit-if-one-screen
                  Quit if entire file fits on first screen.
  -g  ........  --hilite-search
                  Highlight only last match for searches.
  -G  ........  --HILITE-SEARCH
                  Don't highlight any matches for searches.
  -h [N]  ....  --max-back-scroll=[N]
                  Backward scroll limit.
  -i  ........  --ignore-case
                  Ignore case in searches that do not contain uppercase.
  -I  ........  --IGNORE-CASE
                  Ignore case in all searches.
  -j [N]  ....  --jump-target=[N]
                  Screen position of target lines.
  -J  ........  --status-column
                  Display a status column at left edge of screen.
  -k [file]  .  --lesskey-file=[file]
                  Use a lesskey file.
  -K            --quit-on-intr
                  Exit less in response to ctrl-C.
  -L  ........  --no-lessopen
                  Ignore the LESSOPEN environment variable.
  -m  -M  ....  --long-prompt  --LONG-PROMPT
                  Set prompt style.
  -n  -N  ....  --line-numbers  --LINE-NUMBERS
                  Don't use line numbers.
  -o [file]  .  --log-file=[file]
                  Copy to log file (standard input only).
  -O [file]  .  --LOG-FILE=[file]
                  Copy to log file (unconditionally overwrite).
  -p [pattern]  --pattern=[pattern]
                  Start at pattern (from command line).
  -P [prompt]   --prompt=[prompt]
                  Define new prompt.
  -q  -Q  ....  --quiet  --QUIET  --silent --SILENT
                  Quiet the terminal bell.
  -r  -R  ....  --raw-control-chars  --RAW-CONTROL-CHARS
                  Output "raw" control characters.
  -s  ........  --squeeze-blank-lines
                  Squeeze multiple blank lines.
  -S  ........  --chop-long-lines
                  Chop (truncate) long lines rather than wrapping.
  -t [tag]  ..  --tag=[tag]
                  Find a tag.
  -T [tagsfile] --tag-file=[tagsfile]
                  Use an alternate tags file.
  -u  -U  ....  --underline-special  --UNDERLINE-SPECIAL
                  Change handling of backspaces.
  -V  ........  --version
                  Display the version number of "less".
  -w  ........  --hilite-unread
                  Highlight first new line after forward-screen.
  -W  ........  --HILITE-UNREAD
                  Highlight first new line after any forward movement.
  -x [N[,...]]  --tabs=[N[,...]]
                  Set tab stops.
  -X  ........  --no-init
                  Don't use termcap init/deinit strings.
  -y [N]  ....  --max-forw-scroll=[N]
                  Forward scroll limit.
  -z [N]  ....  --window=[N]
                  Set size of window.
  -" [c[c]]  .  --quotes=[c[c]]
                  Set shell quote characters.
  -~  ........  --tilde
                  Don't display tildes after end of file.
  -# [N]  ....  --shift=[N]
                  Horizontal scroll amount (0 = one half screen width)
      ........  --no-keypad
                  Don't send termcap keypad init/deinit strings.
      ........  --follow-name
                  The F command changes files if the input file is renamed.
      ........  --use-backslash
                  Subsequent options use backslash as escape char.


 ---------------------------------------------------------------------------

                          LINE EDITING - 行编辑

        These keys can be used to edit text being entered 
        on the "command line" at the bottom of the screen.
         - 这些键可以用来编辑在屏幕底部的“命令行”上输入的文本。

 RightArrow ..................... ESC-l ... Move cursor right one character.
 LeftArrow ...................... ESC-h ... Move cursor left one character.
 ctrl-RightArrow  ESC-RightArrow  ESC-w ... Move cursor right one word.
 ctrl-LeftArrow   ESC-LeftArrow   ESC-b ... Move cursor left one word.
 HOME ........................... ESC-0 ... Move cursor to start of line.
 END ............................ ESC-$ ... Move cursor to end of line.
 BACKSPACE ................................ Delete char to left of cursor.
 DELETE ......................... ESC-x ... Delete char under cursor.
 ctrl-BACKSPACE   ESC-BACKSPACE ........... Delete word to left of cursor.
 ctrl-DELETE .... ESC-DELETE .... ESC-X ... Delete word under cursor.
 ctrl-U ......... ESC (MS-DOS only) ....... Delete entire line.
 UpArrow ........................ ESC-k ... Retrieve previous command line.
 DownArrow ...................... ESC-j ... Retrieve next command line.
 TAB ...................................... Complete filename & cycle.
 SHIFT-TAB ...................... ESC-TAB   Complete filename & reverse cycle.
 ctrl-L ................................... Complete filename, list all.
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 217,542评论 6 504
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,822评论 3 394
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 163,912评论 0 354
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,449评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,500评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,370评论 1 302
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,193评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,074评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,505评论 1 314
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,722评论 3 335
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,841评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,569评论 5 345
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,168评论 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,783评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,918评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,962评论 2 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,781评论 2 354

推荐阅读更多精彩内容