Skip to content

Adopt a commit feature

Martín Dias edited this page Jan 29, 2021 · 1 revision

[incomplete] The adopt commit operation has nothing to do with the rebase. It sets the reference commit of the image to the given commit. It does not affect the git repository. The image knows at any moment the commit it has loaded (or it is supposed to have loaded). The adopt operation overrides the reference commit with the selected one, it does not affect the loaded code. There is a risk of doing so, it changes the commit in the image but without changing the commit of the repository nor the loaded code. So, it can produce a detached working-copy, and also it affects the records of changes the image has.

Clone this wiki locally