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 "[email protected]" 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

Good day

I need \the solution to the got clone lab
in the beginners course

Unable to proceed due to this


Please help asap.

Hi @mayureshkrishna ,
You are not in the git directory.

Type ls (to list the directories and files) and find the cloned directory then make use of the cd command to moved to that directory.

ls 

cd story-blog

then  do 
git log 

Regards,

Got it, thanks for your help!

Welcome!! @mayureshkrishna ,
Please try to read the error closely. I would say it will improve your troubleshooting skills. :+1: :innocent:

1 Like

thanks i was having the same problem , then checked my directory

[/quote]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[/quote]

Hi, I ran into the same issue, but it´s supposed to be that way. In the next question you´ll see this:

"If you ran into an issue it is because the repository is public but not everyone can change
it. It is public but read-only. To push changes to the repository you need to be a collaborator or a member of the project.

The account owner - Sarah needs to add you as a collaborator. While logged in to the Gitea UI as user sarah go to SettingsCollaborators of the project and add max as collaborate with Write permissions.

Use Sarah’s credentials:
Username: sarah
Password: Sarah_pass123
"

were you able to add max? I am getting the message that “the user is inactive” and it impacts all next steps. @Tej_Singh_Rana appreciate you could help.

Hi @Rahelem ,

Please mention the ques number and the lab link. We’ll check it and get back to you.

Regards,

https://learn.kodekloud.com/user/courses/git-for-beginners/module/299037d1-d4d5-4d22-8eb3-b8fc6af3f8d2/lesson/98603f2e-51a0-4029-bea4-5f53c7a1cd42

on question 9

Hi @Rahelem,

The team has checked and can add a “max” user.