Initialize a repo and add files

Report a typo

You are working on three files locally:

  • file1.txt: (contains "Content for file1")

  • file2.txt: (contains "Content for file2")

  • file3.txt: (contains "Content for file3")

Now:

  • Initialize a new Git repository;

  • Add all three files to the staging area;

  • Check the current state of the working directory.

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

Write a program
# Write commands below line by line

Create a free account to access the full topic