Upload guided project to Github

Screen Link: Learn data science with Python and R projects

I want to upload the guide projects to Github but get stuck in the process of initialize the folder as a git repository.

Here’s the guideline I follow:

My Code:

cd loans
git init

What I expected to happen:

Initialized empty Git repository in /loans/.git/

What actually happened:

no such file or dictionary
Permission denied

can you please advise is this the correct guideline to follow? if so, anything I can do to fix it(e.g. it seems Git doesn’t know where I save the folder, how can I clarify?)

Best,
Jessie