treeverse / lakeFS

lakeFS - Data version control for your data lake | Git for data
https://docs.lakefs.io
Apache License 2.0
4.46k stars 359 forks source link

lakectl local checkout to a new branch in a local directory #8361

Open HMJiangGatech opened 1 week ago

HMJiangGatech commented 1 week ago

I have already clone the branch-a to a local directory using lakectl command. Then I created a new branch named 'branch-b', I want to also switch the local directory to track the branch-b.

I tried lakectl local checkout -r lakefs://repo-name/branch-b/, and it runs a diff saying No changes. The local directory is still tracking the branch-b.

I was able to change the local branch by modifying .lakefs_ref.yaml directly. But I it makes sense to do it with lakectl command directly, just like the git checkout -b branch-b command.

talSofer commented 13 hours ago

This bug may happen when branch-a and branch-b are the same