mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
95bb3dce97
Signed-off-by: matttrach <matttrach@gmail.com>
1.3 KiB
1.3 KiB
Rebase
- clear out any cached or old files:
git add -A; git reset --hard HEAD
- clear out any cached or older outputs:
rm -rf _output
- rebase your local copy to move the old k3s tag from the old k8s tag to the new k8s tag
- so there are three copies of the code involved in this process:
- the upstream kubernetes/kubernets copy on GitHub
- the k3s-io/kubernetes copy on GitHub
- and the local copy on your laptop which is a merge of those
- the local copy has every branch and every tag from the remotes you have added
- there are custom/proprietary commits in the k3s-io copy that are not in the kubernetes copy
- there are commits in the kubernetes copy do not exist in the k3s-io copy
- we want the new commits added to the kubernetes copy to be in the k3s-io copy
- we want the custom/proprietary commits from the k3s-io copy on top of the new kubernetes commits
- before rebase our local copy has all of the commits, but the custom/proprietary k3s-io commits are between the old kubernetes version and the new kubernetes version
- after the rebase our local copy will have the k3s-io custom/proprietary commits after the latest kubernetes commits
git rebase --onto $NEW_K8S $OLD_K8S $OLD_K3S_VER~1
- After rebase you will be in a detached head state, this is normal
- so there are three copies of the code involved in this process: