mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
9 lines
163 B
Bash
Executable file
9 lines
163 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test -z $1 && echo "source branch required." && exit 1
|
|
src=$1
|
|
dst=${2-master}
|
|
|
|
git checkout $dst \
|
|
&& git merge --no-ff $src \
|
|
&& git branch -d $src |