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

Connected

Exercise

Rebase

You're working on the flight data ETL pipeline project we've been developing.

Your current task is to enhance the data transformation module to handle new types of flight data. While you were working on your feature branch feature_transform, a colleague pushed an update to the data ingestion function on the main branch to accommodate a new data source.

To keep your feature branch up-to-date and maintain a clean project history, you need to rebase your changes on top of the latest main branch.

Instructions 1/4

undefined XP
  • 1
    • In a single command, review the last 3 commits in the log on themain branch.
    • Assume you are on the feature_transform branch.
  • 2
    • Review the last 3 commits on the feature_transform branch using git log.
    • Assume you are already on the feature_transform branch.
  • 3
    • Rebase the main branch onto feature_transform branch.
  • 4
    • Review the updated history of the feature_transform branch for the last 3 commits.
    • Assume you are on the feature_transform branch.