瀏覽代碼

Update git alias snap

pull/1/head
10sr 9 年之前
父節點
當前提交
807bc1ae02
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      setup.sh

+ 1
- 1
setup.sh 查看文件

@@ -248,7 +248,7 @@ git checkout master && git merge --no-ff --stat --verbose -'"

$_gc alias.todo "grep -nH -E -i 'todo:|note:|fixme:'"

$_gc alias.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$gitdir"/logs/refs/snapshot && git update-ref refs/snapshot $(git stash create)'
$_gc alias.snap '! gitdir="`git rev-parse --git-dir`" && : >>"$gitdir"/logs/refs/snapshot && cmt=`git stash create` && test -n "$cmt" && git update-ref refs/snapshot $cmt'

#$_gc alias.wc "!git ls-files -z | xargs -0 wc"
# $_gc push.default "simple"


Loading…
取消
儲存