DevOps Classroom notes 25/Mar/2025

Branches

  • Bringing the changes from one branch to another
    • Merging
    • Rebase
    • Cherry-pick (specific commits not complete branch)
  • Refer Here for merge documentation

Lab Setup

  • I have create a local repo to simulate the below graph

Merge Instructions

  • Always check out to destination branch (branch which wants changes)
git checkout <destination-branch-name>
  • Execute the command to merge from the source branch (branch from which changes are requrired)
git merge <source-branch>

Fast Forward Merge

  • Overview
  • Commands

Merge (Standard)

  • Overview
  • use the same commands

Rebase

  • Overview
  • Refer Here for docs.
  • Commands:
    • checkout to destination or target branch git checkout <destination-branch-name>
    • rebase from source branch git rebase <source-branch>

Merge-conflicts

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Social Media Icons Powered by Acurax Web Design Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version
%%footer%%