Cloning Remote Repos

Let us now try to commit the changes. Try to commit the changes with the message Added fox-and-grapes story . And you might get an error that says Please tell me who you are

This is because Max has cloned the repository, but Git doesn’t know who Max is. Max needs to tell Git his username and email address. For this use the command git config user.email "max@example.com" and git config user.name "max"

The issue is that i’m running the “git add” & " git commit" commands from max(master)$ and it gives the error:
fatal: unable to create /home/sarah/story-blog/.git/index.lock: Permission denied

Hi @tusharm78,

Try the following command:
sudo chown -R <owner>:<group> .git
In your case, I can see that the username is sarah so It would be
sudo chown -R sarah:sarah .git

Hi ,

At the same question, When I am trying to follow instructions and do below command,

git add fox-and-grapes.txt
I get a fatal error as below :
fatal : Not a git repository (or any of the parent directories): .git

Unable to proceed due to this.

Hello, @rohit.wiz
Make sure you’re in the correct directory.
Can you please check the path with pwd command?

pwd