From 2d41819008e12f8c1012cfa46a23f6987de62f46 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Thu, 29 Jun 2023 22:33:23 +0800 Subject: [PATCH] v3 - main to cut out --- a.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 a.sh diff --git a/a.sh b/a.sh new file mode 100644 index 000000000..61f933555 --- /dev/null +++ b/a.sh @@ -0,0 +1,6 @@ +#!/bin/bash +git checkout --orphan temp $1 +git commit -m "v3 - main to cut out" +git rebase --onto temp $1 main-test2 +git branch -D temp +