Straighten a Branch
feature/export branched off a while ago. Since then main gained a security fix. The team wants a straight history: no merge commits on feature branches. You are on feature/export.
Your mission
Make feature/export start from the latest main, in a straight line, keeping both of its commits.
No steps and no hints here: GitDojo checks the repository after every command and edit, whichever way you get there.
Setting up the repository…
Want the guided version? Replay Work with git rebase
Preparing your workspace…
Repository Graph
Click a commit to inspect it
Working Tree
Not a Git repository yet
No unstaged changes
Your working tree matches the staging area.
Staging Area
Files prepared for the next commit
No staged changes
Use git add to prepare files for your next commit.
Repository
Committed history
No commits yet
Use git commit to record staged changes.
