diff --git a/roles/home/scripts/commits.sh b/roles/home/scripts/commits.sh index 29c758e..99f0d06 100644 --- a/roles/home/scripts/commits.sh +++ b/roles/home/scripts/commits.sh @@ -26,6 +26,8 @@ create_pr_from_files() { local commit_message="" local new_branch="pr-$(date +%Y%m%d%H%M%S)" + git checkout "${origin_branch}" + git checkout -b "$new_branch" git add "${files[@]}"