Working with branches

Report a typo

In this repository, an initial commit has already been made on the main branch.

Your task is to:

  • Create a new branch (feature) and switch to it;

  • Create a new file named new_feature.txt and write the following content into it: "This is a new feature";

  • Stage and commit new_feature.txt with a commit message ("Add new feature").

  • Switch back to the main branch and merge the feature branch into it;

  • Do not delete the feature branch.

Write your Git command(s) below line by line.

Write a program
# Write your Git command(s) below line by line

Create a free account to access the full topic