user
04/01/2022, 1:13 PMmain
branch with tagged commits. I create an experiment
branch from one of those tags. There are more recent commits on main
. I want to essentially cherry-pick one of those recent commits from main
onto my experiment
branch. What is the process for that? I'm most interested in avoiding copying the physical data, but I may have a use case where I want to use same commit ID if possible.
From what I found, I think I can copy references to the data:
1. Use the API to list files (ls
) at the LakeFS path on the commit I want to copy.
2. Use the API to stat
each file to get the physical address and other metadata.
3. Use the API to stage each file onto my experiment
branch, using the physical address and other metadata retrieved from the stat operation.
4. Commit those staged changes.
Does that sound right or is there a more preferred approach to this problem?user
04/01/2022, 1:33 PMmain
again, and merge the the change from the experiment
branch will help?
1. create experiment2
based on main
2. commit changes on experiment
3. merge change from experiment
to experiment2
If the cherry-picking is for a specific commit - new files that added from a specific branch to main
. Use the source reference and merge it to experiment
branch. (note that changes in the experiment
branch should be committed.
Think that understanding the use-case will help more in providing a valid solution and even form a good feature request.user
04/01/2022, 1:48 PMuser
04/01/2022, 1:50 PMuser
04/01/2022, 2:08 PMuser
04/01/2022, 3:13 PMuser
04/03/2022, 3:28 PMuser
04/03/2022, 5:03 PM