- First Git was installed, I created a user and created a file DevOps in the Git terminal. I then moved to the DevOps folder using the cd command. These steps are shown in the screenshot below
- I created a .txt file index.txt and added a line of text to the file. When I tried to make my commit, I got an error. This was because I had not specified my email earlier. See below above steps and error message
I proceeded to specify my email and when I made the commit it worked just fine!
- Next, I created a new branch "new branch" and checked my branches as shown below
- I poceeded to make a text modification on the first brand merged the branches as shown below
- The "main" branch was deleted using the git branch -d command
- A new repository was created to work on the next phase as shown below