-
Create a directory to put your code in.
$ mkdir mycode && cd mycode -
Write some code, or pretty much anything.
$ echo "Some Text" >> textfile -
Init the Git!
$ git init -
Add your file to the repository.
$ git add textfile -
Commit your changes to the respository.
$ git commit -m "first commit"
Next steps: