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