Challenge: Git Branching

Test your understanding of “Git branching” by completing the following challenge.

We'll cover the following

Problem statement

Clone a repository from GitHub, and create a branch off of the main branch (usually master) called mine. Create a new commit on your branch and tag it.

Create another commit from there, and return to your previous commit. What does git status now say? In this detached HEAD state, make a commit. Then look at the repository with the help of git log.