I am trying to follow along with the video Getting started with Git and GitHub. I can’t add a README.txt file to the staging area. I get a message fatal: pathspec ‘README.txt’ did not match any files even though It’s in the directory I’m in.
An image could definitely help us more.
Are you sure you are in the main branch of your git repository?
Prior to adding the README.txt file to the next staging phase,
type the ls command to see if you actually have the README.txt inside your directory because from what I understand, the file you are trying to add is not in the directory.
Because if I recall correctly, git init does not create a README.txt automatically.