Task ---> Git 4 : Update Git Repository with Sample HTML File

Jump host thor to storage server
scp command failed due to root permissions to the folder ( /usr/src/kodekloudrepos/beta)
Due to failed i have created /tmp(folder and moved the index.html file to this /tmp folder)
then moved to task folder . checkout the below command
sudo mv index.html /usr/src/kodekloudrepos/beta/
cd /usr/src/kodekloudrepos/beta/
ls
clear
pwd
sudo chown -R natasha:natasha /usr/src/kodekloudrepos/beta/ —> changed permission from root to natasha
ls -l /usr/src/kodekloudrepos/beta/
clear
ls
git add index.html
git status
git commit -m “Add sample index.html to beta directory”
git config --global user.email “[email protected]
git config --global user.name “natasha”
git commit -m “Add sample index.html to beta directory”
git branch
git push origin master
git config --global --add safe.directory /opt/beta.git
git push origin master
ls -ld /opt/beta.git
ls -l /opt/beta.git/objects
sudo chown -R natasha:natasha /opt/beta.git
git push origin master
git status

Hi @LakkiReddy-Pradeep-k

Please refer to this post and try again.

Hi @raymond.baoly !!!

Thankyou for the response it worked successfully and could you please let me know the where did i make mistake previously .

Hi @LakkiReddy-Pradeep-k

I’m not sure, but I noticed that you set permissions in the Storage Server for ‘natasha’, which might affect the validation. This step isn’t required for this task, so I think that could be the root cause of the failure.