Put in order · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Ordering: A branch diff into a file

Arrange the command that passes the changes of the whole branch to Claude and saves the answer to a file:

Items to put in order

  • claude -p "Summarise the branch changes for a pull request description."
  • git diff main...HEAD
  • |
  • > pr-description.md

You can check the correct answer by solving this task in the CodeWorlds game.