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

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\]

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683254536059/45824c08-875c-441a-ba23-9730faf84b82.png align="center")

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

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683254626934/667787a4-b199-428f-a1c9-38d9c0d762b6.png align="center")

* 1st line&gt;&gt; This is the bug fix in development branch
    
* Commit this with message “ Added feature2 in development branch”
    
* 2nd line&gt;&gt; This is gadbad code
    
* Commit this with message “ Added feature3 in development branch
    
* 3rd line&gt;&gt; This feature will gadbad everything from now.
    
* Commit with message “ Added feature4 in development branch
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683254683993/4d9c49ab-0d00-4e1e-8792-7bcca77d6347.png align="center")

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\]

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683254731484/9da59c04-91b7-4b70-819c-e78ec97218cc.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683254754462/dea6d60f-7b2f-48a9-8a7a-c0777cbcef01.png align="center")

## Task 2:

* add some changes to `dev` branch and merge that branch in `master`
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683254892811/e1b5ef0e-0659-4396-aab4-35762c8081cc.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683254916942/51ef29eb-05b1-49c9-b5b1-3680f4d78811.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683254939376/550d7184-b523-4593-bcc5-ab5073d84e84.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1683254970604/29e692b4-fbdc-4569-ad48-c3f99d27579f.png align="center")

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.
