下边是我定义的命令别名,虽然还是记不住;
所以每次还要先执行下code ~/.gitconfig
打开配置文件照着敲;
[alias]
# status
s = status
ss = status --short --branch
# stash
sh = stash
shp = stash pop
shl = stash list
shs = stash save
sha = stash apply
std = stash drop
# branch
br = branch
bra = branch -a
brm = branch -m
co = checkout
cob = checkout -b
sw = switch
swc = switch -c
# remote
ra = remote add
rao = remote add origin
ru = remote set-url
ruo = remote set-url origin
# re = remote
rev = remote -v
# fetch
fe = fetch
fep = fetch -p
fo = fetch origin
fop = fetch origin -p
# merge
mr = merge
mnc = merge --no-commit
# msq = merge --squash
# commit
ci = commit
cim = commit -m
「折腾」 git 及 docker 命令快捷输入_电脑网络_沉冰浮水:
↑ 原文链接,后续可能会修改或补充
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.