mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
13 lines
184 B
Bash
Executable file
13 lines
184 B
Bash
Executable file
#!/bin/sh
|
|
|
|
src=$1
|
|
msg=$2
|
|
|
|
test -z $src && echo "source branch required." && exit 1
|
|
|
|
git merge --squash $src
|
|
|
|
if test -n "$msg"; then
|
|
git commit -a -m "$msg" && git branch -D $src
|
|
fi
|