First, run this code that initializes a new git repo inside a directory named
mkdir yolo cd yolo git init
Don't forget to
cd to the parent directory where you want the
yolo/ directory to reside, before running the
Now insert a text file named
Finally, commit your changes with the message "first commit".
How do I create a text file from the command line?
Create an empty file using
Create a file with some text using
echo "Hello World" > foo.txt