俺様用しおり
何も押さない状態でwhich-keyを発動させる
[SPC h k] which-key-show-top-level
magit-statusの画面
[SPC g s]magit-statusではいる
- [b b]magit-checktout
- [b c]magit-branch-and-checkout リモートのブランチをチェックアウトしたり、新しいブランチを作ったりする時に使う
- [Z z]magit-stash
- [A]magit-stash-pop popしたいstashを選択した状態で行う
- [r i]magit-rebase-interactive コミットを綺麗に整理したいときに M-j,M-kなどでコミットの順番を入れ替えたりsでsquashしたりできる。
- [r e]magit-rebase onto elsewhereでmasterを選択 最新のmasterからブランチを切ったかのようにrebaseを行う
Spacemacsの更新手順
- [SPC p l]helm-persp-switch-project でspacemacsレポジトリへ移動
- [F u]magit-pull-popup で upstream を選択する
- [SPC SPC]のあとconfiguration-layer/update-packagesを選択する
- [f e R]dotspacemacs/sync-configration-layers
ディフォルトの.spacemacsと自分の.spacemacsの差分を見る
時々テンプレート側が更新されるので確認する。
自分はこだわりがない限りテンプレート側の設定を尊重することにしている。
[SPC f e D]ediff-dotfile-and-template
で標準添付の設定ファイルと比較する。
n,pでhunk間を移動できる。
編集のファイルのディレクトリでシェルを開く
[SPC '] open shell
Ctrl-dでシェルを閉じられる