6

git stash 命令确实有点好用

 2 years ago
source link: https://www.v2ex.com/t/875573
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  git

git stash 命令确实有点好用

  wdssmq · 1 小时 49 分钟前 · 1072 次点击

下边是我定义的命令别名,虽然还是记不住;

所以每次还要先执行下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 命令快捷输入_电脑网络_沉冰浮水:

https://www.wdssmq.com/post/20171130103.html

↑ 原文链接,后续可能会修改或补充


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK