git merge <branch>
When you run git merge, Git brings the pages from the named <branch> into the currently active one. HEAD is sitting on main, so main is active, and therefore main is the branch you will be merging INTO. To merge dev into main, the command is git merge dev.