소스 검색

add git-branchd and git-reset-up

raylu 9 년 전
부모
커밋
55504a1af2
2개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      git-branchd
  2. 7 0
      git-reset-up

+ 6 - 0
git-branchd

@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+set -eu
+
+git branch -d $1
+git push origin :$1

+ 7 - 0
git-reset-up

@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+set -eu
+
+BRANCH=`git symbolic-ref --short HEAD`
+REMOTE=`git config branch.$BRANCH.remote`
+git reset $REMOTE/$BRANCH $*