1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-25 22:01:14 +02:00
lazygit/docs/keybindings/Keybindings_ja.md
Jesse Duffield 53a8bd2e3f Add ability to start an interactive rebase onto an appropriate base
A common issue I have is that I want to move a commit from the top of my branch
all the way down to the first commit on the branch. To do that, I need to navigate
down to the first commit on my branch, press 'e' to start an interactive rebase,
then navigate back up to the top of the branch, then move my commit back down to
the base. This is annoying.

Similarly annoying is moving the commit one-by-one without explicitly starting
an interactive rebase, because then each individual step is its own rebase which
takes a while in aggregate.

This PR allows you to press 'i' from the commits view to start an interactive
rebase from an 'appropriate' base. By appropriate, we mean that we want to start
from the HEAD and stop when we reach the first merge commit or commit on the main
branch. This may end up including more commits than you need, but it doesn't make
a difference.
2024-01-13 12:57:49 +11:00

13 KiB

This file is auto-generated. To update, make the changes in the pkg/i18n directory and then run go generate ./... from the project root.

Lazygit キーバインド

Legend: <c-b> means ctrl+b, <a-b> means alt+b, B means shift+b

グローバルキーバインド

  <c-r>: 最近使用したリポジトリに切り替え
  <pgup>: メインパネルを上にスクロール (fn+up/shift+k)
  <pgdown>: メインパネルを下にスクロール (fn+down/shift+j)
  @: コマンドログメニューを開く
  }: Increase the size of the context shown around changes in the diff view
  {: Decrease the size of the context shown around changes in the diff view
  :: カスタムコマンドを実行
  <c-p>: View custom patch options
  m: View merge/rebase options
  R: リフレッシュ
  +: 次のスクリーンモード (normal/half/fullscreen)
  _: 前のスクリーンモード
  ?: メニューを開く
  <c-s>: View filter-by-path options
  W: 差分メニューを開く
  <c-e>: 差分メニューを開く
  <c-w>: 空白文字の差分の表示有無を切り替え
  z: アンドゥ (via reflog) (experimental)
  <c-z>: リドゥ (via reflog) (experimental)
  P: Push
  p: Pull

一覧パネルの操作

  ,: 前のページ
  .: 次のページ
  <: 最上部までスクロール
  >: 最下部までスクロール
  /: 検索を開始
  H: 左スクロール
  L: 右スクロール
  ]: 次のタブ
  [: 前のタブ

Stash

  <space>: 適用
  g: Pop
  d: Drop
  n: 新しいブランチを作成
  r: Stashを変更
  w: View worktree options
  <enter>: View selected item's files
  /: Filter the current view by text

Sub-commits

  <c-o>: コミットのSHAをクリップボードにコピー
  w: View worktree options
  <space>: コミットをチェックアウト
  y: コミットの情報をコピー
  o: ブラウザでコミットを開く
  n: コミットにブランチを作成
  g: View reset options
  c: コミットをコピー (cherry-pick)
  C: コミットを範囲コピー (cherry-pick)
  <c-r>: Reset cherry-picked (copied) commits selection
  <c-t>: Open external diff tool (git difftool)
  <enter>: View selected item's files
  /: 検索を開始

Worktrees

  n: Create worktree
  <space>: Switch to worktree
  <enter>: Switch to worktree
  o: Open in editor
  d: Remove worktree
  /: Filter the current view by text

コミット

  <c-o>: コミットのSHAをクリップボードにコピー
  <c-r>: Reset cherry-picked (copied) commits selection
  b: View bisect options
  s: Squash down
  f: Fixup commit
  r: コミットメッセージを変更
  R: エディタでコミットメッセージを編集
  d: コミットを削除
  e: コミットを編集
  i: Start interactive rebase
  p: Pick commit (when mid-rebase)
  F: このコミットに対するfixupコミットを作成
  S: Squash all 'fixup!' commits above selected commit (autosquash)
  <c-j>: コミットを1つ下に移動
  <c-k>: コミットを1つ上に移動
  v: コミットを貼り付け (cherry-pick)
  B: Mark commit as base commit for rebase
  A: ステージされた変更でamendコミット
  a: Set/Reset commit author
  t: コミットをrevert
  T: タグを作成
  <c-l>: ログメニューを開く
  w: View worktree options
  <space>: コミットをチェックアウト
  y: コミットの情報をコピー
  o: ブラウザでコミットを開く
  n: コミットにブランチを作成
  g: View reset options
  c: コミットをコピー (cherry-pick)
  C: コミットを範囲コピー (cherry-pick)
  <c-t>: Open external diff tool (git difftool)
  <enter>: View selected item's files
  /: 検索を開始

コミットファイル

  <c-o>: コミットされたファイル名をクリップボードにコピー
  c: Checkout file
  d: Discard this commit's changes to this file
  o: ファイルを開く
  e: ファイルを編集
  <c-t>: Open external diff tool (git difftool)
  <space>: Toggle file included in patch
  a: Toggle all files included in patch
  <enter>: Enter file to add selected lines to the patch (or toggle directory collapsed)
  `: ファイルツリーの表示を切り替え
  /: 検索を開始

コミットメッセージ

  <enter>: 確認
  <esc>: 閉じる

サブモジュール

  <c-o>: サブモジュール名をクリップボードにコピー
  <enter>: サブモジュールを開く
  <space>: サブモジュールを開く
  d: サブモジュールを削除
  u: サブモジュールを更新
  n: サブモジュールを新規追加
  e: サブモジュールのURLを更新
  i: サブモジュールを初期化
  b: View bulk submodule options
  /: Filter the current view by text

ステータス

  o: 設定ファイルを開く
  e: 設定ファイルを編集
  u: 更新を確認
  <enter>: 最近使用したリポジトリに切り替え
  a: すべてのブランチログを表示

タグ

  <space>: チェックアウト
  d: View delete options
  P: タグをpush
  n: タグを作成
  g: View reset options
  w: View worktree options
  <enter>: コミットを閲覧
  /: Filter the current view by text

ファイル

  <c-o>: ファイル名をクリップボードにコピー
  d: View 'discard changes' options
  <space>: ステージ/アンステージ
  <c-b>: ファイルをフィルタ (ステージ/アンステージ)
  y: Copy to clipboard
  c: 変更をコミット
  w: pre-commitフックを実行せずに変更をコミット
  A: 最新のコミットにamend
  C: gitエディタを使用して変更をコミット
  <c-f>: Find base commit for fixup
  e: ファイルを編集
  o: ファイルを開く
  i: ファイルをignore
  r: ファイルをリフレッシュ
  s: 変更をstash
  S: View stash options
  a: すべての変更をステージ/アンステージ
  <enter>: Stage individual hunks/lines for file, or collapse/expand for directory
  g: View upstream reset options
  D: View reset options
  `: ファイルツリーの表示を切り替え
  <c-t>: Open external diff tool (git difftool)
  M: Git mergetoolを開く
  f: Fetch
  /: 検索を開始

ブランチ

  <c-o>: ブランチ名をクリップボードにコピー
  i: Show git-flow options
  <space>: チェックアウト
  n: 新しいブランチを作成
  o: Pull Requestを作成
  O: Create pull request options
  <c-y>: Pull RequestのURLをクリップボードにコピー
  c: Checkout by name, enter '-' to switch to last
  F: Force checkout
  d: View delete options
  r: Rebase checked-out branch onto this branch
  M: 現在のブランチにマージ
  f: Fast-forward this branch from its upstream
  T: タグを作成
  s: 並び替え
  g: View reset options
  R: ブランチ名を変更
  u: View upstream options
  w: View worktree options
  <enter>: コミットを閲覧
  /: Filter the current view by text

メインパネル (Merging)

  e: ファイルを編集
  o: ファイルを開く
  <left>: 前のコンフリクトを選択
  <right>: 次のコンフリクトを選択
  <up>: 前のhunkを選択
  <down>: 次のhunkを選択
  z: アンドゥ
  M: Git mergetoolを開く
  <space>: Pick hunk
  b: Pick all hunks
  <esc>: ファイル一覧に戻る

メインパネル (Normal)

  mouse wheel down: 下にスクロール (fn+up)
  mouse wheel up: 上にスクロール (fn+down)

メインパネル (Patch Building)

  <left>: 前のhunkを選択
  <right>: 次のhunkを選択
  v: 範囲選択を切り替え
  V: 範囲選択を切り替え
  a: Hunk選択を切り替え
  <c-o>: 選択されたテキストをクリップボードにコピー
  o: ファイルを開く
  e: ファイルを編集
  <space>: 行をパッチに追加/削除
  <esc>: Exit custom patch builder
  /: 検索を開始

メインパネル (Staging)

  <left>: 前のhunkを選択
  <right>: 次のhunkを選択
  v: 範囲選択を切り替え
  V: 範囲選択を切り替え
  a: Hunk選択を切り替え
  <c-o>: 選択されたテキストをクリップボードにコピー
  o: ファイルを開く
  e: ファイルを編集
  <esc>: ファイル一覧に戻る
  <tab>: パネルを切り替え
  <space>: 選択行をステージ/アンステージ
  d: 変更を削除 (git reset)
  E: Edit hunk
  c: 変更をコミット
  w: pre-commitフックを実行せずに変更をコミット
  C: gitエディタを使用して変更をコミット
  /: 検索を開始

メニュー

  <enter>: 実行
  <esc>: 閉じる
  /: Filter the current view by text

リモート

  f: リモートをfetch
  n: リモートを新規追加
  d: リモートを削除
  e: リモートを編集
  /: Filter the current view by text

リモートブランチ

  <c-o>: ブランチ名をクリップボードにコピー
  <space>: チェックアウト
  n: 新しいブランチを作成
  M: 現在のブランチにマージ
  r: Rebase checked-out branch onto this branch
  d: Delete remote tag
  u: Set as upstream of checked-out branch
  s: 並び替え
  g: View reset options
  w: View worktree options
  <enter>: コミットを閲覧
  /: Filter the current view by text

参照ログ

  <c-o>: コミットのSHAをクリップボードにコピー
  w: View worktree options
  <space>: コミットをチェックアウト
  y: コミットの情報をコピー
  o: ブラウザでコミットを開く
  n: コミットにブランチを作成
  g: View reset options
  c: コミットをコピー (cherry-pick)
  C: コミットを範囲コピー (cherry-pick)
  <c-r>: Reset cherry-picked (copied) commits selection
  <c-t>: Open external diff tool (git difftool)
  <enter>: コミットを閲覧
  /: Filter the current view by text

確認パネル

  <enter>: 確認
  <esc>: 閉じる/キャンセル