github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/docs/quickstart/rollback.md (about) 1 --- 2 title: 5️⃣ Roll back Changes 3 description: lakeFS quickstart / Rollback the changes made to show how lakeFS can be used to revert changes made in error. 4 parent: ⭐ Quickstart 5 nav_order: 25 6 next: ["Using Actions and Hooks in lakeFS", "./actions-and-hooks.html"] 7 previous: ["Merge the branch back into main", "./commit-and-merge.html"] 8 --- 9 10 # Rolling back Changes in lakeFS 11 12 Our intrepid user (you) merged a change back into the `main` branch and realised that they had made a mistake 🤦🏻. 13 14 The good news for them (you) is that lakeFS can revert changes made, similar to how you would in Git 😅. 15 16 From your terminal window run `lakectl` with the `revert` command: 17 18 ```bash 19 docker exec -it lakefs \ 20 lakectl branch revert \ 21 lakefs://quickstart/main \ 22 main --parent-number 1 --yes 23 ``` 24 You should see a confirmation of a successful rollback: 25 ``` 26 Branch: lakefs://quickstart/main 27 commit main successfully reverted 28 ``` 29 30 Back in the object page and the DuckDB query we can see that the original file is now back to how it was: 31 <img src="{{ site.baseurl }}/assets/img/quickstart/duckdb-main-02.png" alt="The lakeFS object viewer with DuckDB query showing that the lakes dataset on main branch has been successfully returned to state prior to the merge." class="quickstart"/>