DevOps Classroom notes 16/Nov/2023

Adhoc

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

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

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
  • Now add
git add
git commit
  • This will open a vi editor Refer Here to learn about vi
  • In this use esc+wq
  • Fastforward merge
    • before merge
    • after merge
  • rebase Refer Here
    • before rebase
    • after rebase
  • cherry pick: Refer Here

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%%