lazygit 使用

global

←→↑↓ / hjkl: navigate 导航

PgUp / PgDn or ctrl+u / ctrl+d: scroll diff panel 翻页

q : quit 退出

p : pull 拉取

q : push 推送

file panel

space : toggle staged 选择

c : commit change 提交选择

shift+C : commit using git editor 使用git编辑器提交

shift+S : stash files 隐藏文件

t : add patched(i.e pick chunks of a file to add) 添加补丁(即选择要添加的文件块)

o : open 打开

e : edit 编辑

s : open in sublime(requires ‘subl’ command)

v : open in vscode(requires ‘code’ command)

i : add to .gitinore

d : delete if untracked, checkout if tracked

shift+R : refresh files 刷新

branches panel

space : checkout branch 结帐分支

f : force checkout branch 强制结帐分支

m : merge into currently checked out branch 合并当前分支

c : checkout by name 按名字结帐

n : new branch 新分支

d : delete branch 删除分支

commit group

s : squash down(only available for topmost commit) 压缩(仅适用于最高提交)

r : rename commit 重命名提交

g : reset to this commit 重置该提交

save panel

space : apply 应用

g : pop

d : drop

popup panel

esc : close / cancel 取消

enter : confirm 确认

tab : enter newline(if editing) 输入时的换行

difference panel

hl : navigate conflicts

jk : select hunk

space : pick hunk

b : pick both hunks

z : undo(only available while still inside diff panel)

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值