git show/diff 界面操作

在 git show 或者git diff 的界面下屎媳,它的快捷鍵說明,部分如下:(區(qū)分大小寫)

q ,Q:退出顯示

H侍芝,h:命令幫助(有了這個箱锐,其他的都不用看了)

y比勉,k:上一行

e,j驹止,回車:下一行

z浩聋,b:上一頁

f,space:下一頁

小鍵盤的Home臊恋,End衣洁,PgUp,PgDn抖仅,上坊夫,下鍵對應(yīng)相應(yīng)的功能。

完整如下撤卢,點擊H/h都可以顯示环凿;

      Commands marked with * may be preceded by a number, N.
      Notes in parentheses indicate the behavior if N is given.
 
  h  H                 Display this help.
  q  :q  Q  :Q  ZZ     Exit.
 ---------------------------------------------------------------------------
 
                           MOVING
 
  e  ^E  j  ^N  CR  *  Forward  one line   (or N lines).
  y  ^Y  k  ^K  ^P  *  Backward one line   (or N lines).
  f  ^F  ^V  SPACE  *  Forward  one window (or N lines).
  b  ^B  ESC-v      *  Backward one window (or N lines).
  z                 *  Forward  one window (and set window to N).
  w                 *  Backward one window (and set window to N).
  ESC-SPACE         *  Forward  one window, but don't stop at end-of-file.
  d  ^D             *  Forward  one half-window (and set half-window to N).
  u  ^U             *  Backward one half-window (and set half-window to N).
  ESC-)  RightArrow *  Left  one half screen width (or N positions).
  ESC-(  LeftArrow  *  Right one half screen width (or N positions).
  F                    Forward forever; like "tail -f".
  r  ^R  ^L            Repaint screen.
  R                    Repaint screen, discarding buffered input.
        ---------------------------------------------------
        Default "window" is the screen height.
        Default "half-window" is half of the screen height.
 ---------------------------------------------------------------------------
 
                          SEARCHING
 
  /pattern          *  Search forward for (N-th) matching line.
  ?pattern          *  Search backward for (N-th) matching line.
  n                 *  Repeat previous search (for N-th occurrence).
  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
        ---------------------------------------------------
        Search patterns may be modified 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 ?).
        ^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).
  G  >  ESC->       *  Go to last line in file (or line N).
  p  %              *  Go to beginning of file (or N percent into file).
  t                 *  Go to the (N-th) next tag.
  T                 *  Go to the (N-th) previous tag.
  {  (  [           *  Find close bracket } ) ].
  }  )  ]           *  Find open bracket { ( [.
  ESC-^F <c1> <c2>  *  Find close bracket <c2>.
  ESC-^B <c1> <c2>  *  Find open bracket <c1>
        ---------------------------------------------------
...skipping...
                  Squeeze multiple blank lines.
  -S  ........  --chop-long-lines
                  Chop long lines.
  -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.
                --no-keypad
                  Don't use termcap keypad 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 keypad init/deinit sequence.
      ........  --follow-name
                  The F command changes files if the input file is renamed.

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

                          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.
 CNTL-RightArrow  ESC-RightArrow  ESC-w     Move cursor right one word.
 CNTL-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.
 CNTL-BACKSPACE   ESC-BACKSPACE             Delete word to left of cursor.
 CNTL-DELETE      ESC-DELETE      ESC-X     Delete word under cursor.
 CNTL-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.
 CNTL-L                                     Complete filename, list all.

更多精彩請關(guān)注: Git專題

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市放吩,隨后出現(xiàn)的幾起案子智听,更是在濱河造成了極大的恐慌,老刑警劉巖渡紫,帶你破解...
    沈念sama閱讀 219,539評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件到推,死亡現(xiàn)場離奇詭異,居然都是意外死亡惕澎,警方通過查閱死者的電腦和手機环肘,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,594評論 3 396
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來集灌,“玉大人悔雹,你說我怎么就攤上這事⌒佬” “怎么了腌零?”我有些...
    開封第一講書人閱讀 165,871評論 0 356
  • 文/不壞的土叔 我叫張陵,是天一觀的道長唆阿。 經(jīng)常有香客問我益涧,道長,這世上最難降的妖魔是什么驯鳖? 我笑而不...
    開封第一講書人閱讀 58,963評論 1 295
  • 正文 為了忘掉前任闲询,我火速辦了婚禮久免,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘扭弧。我一直安慰自己阎姥,他們只是感情好,可當(dāng)我...
    茶點故事閱讀 67,984評論 6 393
  • 文/花漫 我一把揭開白布鸽捻。 她就那樣靜靜地躺著呼巴,像睡著了一般。 火紅的嫁衣襯著肌膚如雪御蒲。 梳的紋絲不亂的頭發(fā)上衣赶,一...
    開封第一講書人閱讀 51,763評論 1 307
  • 那天,我揣著相機與錄音厚满,去河邊找鬼府瞄。 笑死,一個胖子當(dāng)著我的面吹牛碘箍,可吹牛的內(nèi)容都是我干的遵馆。 我是一名探鬼主播,決...
    沈念sama閱讀 40,468評論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼敲街,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了严望?” 一聲冷哼從身側(cè)響起多艇,我...
    開封第一講書人閱讀 39,357評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎像吻,沒想到半個月后峻黍,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,850評論 1 317
  • 正文 獨居荒郊野嶺守林人離奇死亡拨匆,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,002評論 3 338
  • 正文 我和宋清朗相戀三年姆涩,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片惭每。...
    茶點故事閱讀 40,144評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡骨饿,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出台腥,到底是詐尸還是另有隱情宏赘,我是刑警寧澤,帶...
    沈念sama閱讀 35,823評論 5 346
  • 正文 年R本政府宣布黎侈,位于F島的核電站察署,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏峻汉。R本人自食惡果不足惜贴汪,卻給世界環(huán)境...
    茶點故事閱讀 41,483評論 3 331
  • 文/蒙蒙 一脐往、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧扳埂,春花似錦业簿、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,026評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至希太,卻和暖如春克饶,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背誊辉。 一陣腳步聲響...
    開封第一講書人閱讀 33,150評論 1 272
  • 我被黑心中介騙來泰國打工矾湃, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人堕澄。 一個月前我還...
    沈念sama閱讀 48,415評論 3 373
  • 正文 我出身青樓邀跃,卻偏偏與公主長得像,于是被迫代替她去往敵國和親蛙紫。 傳聞我的和親對象是個殘疾皇子拍屑,可洞房花燭夜當(dāng)晚...
    茶點故事閱讀 45,092評論 2 355

推薦閱讀更多精彩內(nèi)容

  • Android 自定義View的各種姿勢1 Activity的顯示之ViewRootImpl詳解 Activity...
    passiontim閱讀 172,190評論 25 707
  • 用兩張圖告訴你,為什么你的 App 會卡頓? - Android - 掘金 Cover 有什么料坑傅? 從這篇文章中你...
    hw1212閱讀 12,734評論 2 59
  • 我算是羅胖(感覺這樣稱呼親戚點)的鐵桿粉絲了僵驰,他的每一期節(jié)目我都會認(rèn)真聽,完事都會想唁毒,總能和你的生活練習(xí)到一塊蒜茴。 ...
    全名666閱讀 666評論 0 1
  • 牛大寶,是我們村的一個鄰居浆西,從某個角度說粉私,他還是孩子的時候,我就搬到這個村了近零,可以說诺核,牛大寶從孩子時代,到現(xiàn)在身陷...
    渤海輟耕錄閱讀 511評論 0 0
  • 5.21 周一 小雨 慶媽媽第265篇 中午在上班得時候久信,做事粗心磨了一個大水泡猪瞬! 回到家我說,這怎么辦呢入篮?...
    史響慶閱讀 140評論 0 0