Explorar o código

add git-branchd and git-reset-up

raylu %!s(int64=9) %!d(string=hai) anos
pai
achega
55504a1af2
Modificáronse 2 ficheiros con 13 adicións e 0 borrados
  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 $*