浏览代码

setup.sh: update git alias close-branch

pull/1/head
10sr 10 年前
父节点
当前提交
c67235b1a6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      setup.sh

+ 2
- 2
setup.sh 查看文件

@@ -126,7 +126,7 @@ setup_gitconf(){
$_gc alias.co "checkout"
$_gc alias.cim "commit --verbose -m"
$_gc alias.di "diff --color"
$_gc alias.me "merge --no-ff --stat -v"
$_gc alias.me "merge --no-ff --stat --verbose"
$_gc alias.gr "grep -n"
$_gc alias.ls "ls-files"
# $_gc alias.ls "ls-files -v --full-name"
@@ -141,7 +141,7 @@ setup_gitconf(){
# workflow
_git_open_branch="checkout -b"
_git_close_branch="!sh -cx 'git stash && \
git checkout master && git merge -'"
git checkout master && git merge --no-ff --stat --verbose -'"
$_gc alias.open-branch "$_git_open_branch"
$_gc alias.close-branch "$_git_close_branch"
$_gc alias.o "$_git_open_branch"


正在加载...
取消
保存