1. Use the cd command to switch to your project folder, making it the current working directory.
  2. Enter git init to create an empty repository.
  3. Enter git add . to copy your project files into the repository.
  4. Enter git commit -m "Initial commit." to commit all the files.