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

Leave a Reply

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

About continuous learner

devops & cloud enthusiastic learner