I've gotten through step 8, but when I attempt step 9, I get the following message "fatal: not a git repository (or any of the parent directories): .git"
What I type in for step 8 has been "git mv sample.txt exampl.txt"
Open the Terminal/Git Bash and (using only the command line) create the following:
Navigate to your Desktop or Directory: cd Desktop
Once there, create a new directory named test: mkdir test
Navigate into the test directory: cd test
Check to see what's inside (it should be empty): ls
Navigate back to Desktop: cd ..
Move the sample.txt file into the test directory: mv sample.txt test
Make sure this was successful: cd test press enter and then ls
Rename the sample.txt file to example.txt
All the solutions I've found on google or githelp all seem to give me the same result.
答案 0 :(得分:0)
Torek means you forgot to initialize the git repo (after step 2): git init
.
Welcome to stackoverflow and have fun with Git.