DevOps Classroom notes 16/Nov/2023

Adhoc

  • Renaming the branch
git branch -M <new-branch-name>

Preview

  • Create and checkout to a new branch git checkout -b <new-branch>
    Preview
  • Add only modified files
    Preview

Git Merge

Merge Conflicts

  • Conflict arises when git tries to merge the changes and findouts conflicting information from two different references
  • In the class we had differnt lines in line number 2
  • Merge conflict will add some special characters into all conflicts as shown below
    Preview
  • Now add
git add
git commit
  • This will open a vi editor Refer Here to learn about vi
  • In this use esc+wq
    Preview
  • Fastforward merge

    • before merge
      Preview
    • after merge
      Preview
  • rebase Refer Here
    • before rebase
      Preview
    • after rebase
      Preview
  • cherry pick: Refer Here
    Preview
    Preview

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
Plugin for Social Media by Acurax Wordpress Design Studio

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