Skip to main content

Command Palette

Search for a command to run...

Day 10 : Task: Advance Git & GitHub for DevOps Engineers.

Updated
2 min read

Let's start

Task 1 : Add a text file called version01.txt inside the Devops/Git/ with “This is first feature of our application” written inside. This should be in a branch coming from master, [hint try git checkout -b dev], swithch to dev branch ( Make sure your commit message will reflect as "Added new feature"). [Hint use your knowledge of creating branches and Git commit command]

Add new commit in dev branch after adding below mentioned content in Devops/Git/version01.txt: While writing the file make sure you write these lines

  • 1st line>> This is the bug fix in development branch

  • Commit this with message “ Added feature2 in development branch”

  • 2nd line>> This is gadbad code

  • Commit this with message “ Added feature3 in development branch

  • 3rd line>> This feature will gadbad everything from now.

  • Commit with message “ Added feature4 in development branch

Restore the file to a previous version where the content should be “This is the bug fix in development branch” [Hint use git revert or reset according to your knowledge]

Task 2:

  • add some changes to dev branch and merge that branch in master

This were tasks for day 10 and it was quite challenging . I hope I could clear doubt by attaching all screenshots permformed by me. If you have any question/ suggestion please comment below.

Happy learning.

More from this blog

Ajay Patel

116 posts

Day 10 : Task: Advance Git & GitHub for DevOps Engineers.