3. Add the text file that should have the answer of Q1.
git add Q1.txt
4. Add another file to do the following
touch anotherfile.txt
5. Create another branch
git checkout -b anotherBranch
Switched to a new branch 'anotherBranch'
6. Make changes to your files.
7. see if the file change is detected with git status.
$ git status
On branch anotherBranch
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: Q1.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
anotherfile.txt
8. stage the changes with git add .
$ git add .
9. check that the add did what you expected with git status.
$ git status
On branch anotherBranch
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: Q1.txt
new file: anotherfile.txt
10. make the commit with git commit.
11. Write a meaningful commit message (e.g. "Answers question 1").