1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Git

Connected

Exercise

Creating new branches

You are working on updates to the DataCamp website, inside of a Git repo called datacamp.

You've been working in the main branch of your repo, but you now know that you should create a new branch for a specific task and make edits to your project there instead.

You have unsaved changes in main, so you're going to save those, then move into the llm-upgrade branch to look into improving the relevance of the responses that the AI model returns to users.

Instructions 1/3

undefined XP
  • 1
    • Add the updated file main.py to the staging area.
  • 2
    • Make a commit with the log message "Update source code".
  • 3
    • In a single command, create and move to a new branch called llm-upgrade.