DevOps Classroomnotes 21/Feb/2023

Git Contd..

Git Branch

  • Branch allows us to have parallel development in the same repository
  • Create a new local repo (git init) and make first commit
  • Branch to a git is a pointer to a commit id which is latest commit on the branch
  • Lets create a new branch REL_v1.0 (Release for v1.0)

  • Lets move to REL_v1.0 branch

  • Now lets add a commit to REL_v1.0 branch

  • Now lets move to master and look at history

  • Now lets add a commit to master branch

  • Once we have these branches there will be needs to bring changes from one branch to another. To acheive this we need to work with
    • merge
      • Three way merge
      • no fast forward merge
    • Rebase
    • cherry pick
  • When we do any of the above, there might be cases leading to conflicts (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
Customized Social Media Icons from Acurax Digital Marketing Agency

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