Day 10: Advance Git & GitHub for DevOps Engineers

Task 1:
Add a text file called version01.txt inside the Devops/Git/ with “This is the first feature of our application” written inside.

This should be in a branch coming from master, [hint try git checkout -b dev], switch 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]
version01.txt should reflect at the local repo first followed by the Remote repo for review. [Hint use your knowledge of Git push and git pull commands here]

Add a new commit in dev branch after adding the 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 the message “ Added feature2 in development branch”

2nd line>> This is gadbad code

Commit this with the message “ Added feature3 in the development branch

3rd line>> This feature will gadbad everything from now.
Commit with the message “ Added feature4 in the development branch

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



Task 2:
Demonstrate the concept of branches with 2 or more branches with a screenshot.
add some changes to
devthe branch and merge that branch inmaster




as a practice try git rebase too, and see what difference you get.


Happy Learning!!





