DevOps Classroom notes 21/Nov/2024

Git contd

Reference Objects in Git

  • In Git we have two reference objects
    • Branch:
      • This always points to latest commit done
      • The default branch name is master
    • Tag:
      • This always points to specific commit which is tagged

Create branches

  • Watch classroom video

merging changes

  • Three way merge:
    • This creates an extra commit which has two parents
    • This is generally done when the source branch (to which you want to merge the changes) and destination branch have different paths
      Preview
  • Fast Forward merge:

    • this doesnot create extra commit but branch moves ahead
    • This happens in the case when source branch has not changed after target branch creation.
      Preview
  • References:

  • Exercise:
    • Create a local repo
      • with branches
        • main
        • rel_v1.1
        • rel_v1.0
      • Create a situation
        • fast forward merge
        • three way merge
      • Showcase when mergeconflict arises and when it doesnt while merging branches

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

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

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

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

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube