12 lines
165 B
Bash
Executable File
12 lines
165 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source_branch=$0
|
|
dest_branch=$1
|
|
path=$3
|
|
cd $path
|
|
git reset --hard
|
|
git checkout $dest_branch
|
|
git pull
|
|
git checkout $source_branch
|
|
git merge $dest_branch
|