I just completed the “Update Git Repository with Sample HTML File” task on KodeKloud Engineer, but it shows as failed. I believe I followed the steps correctly, but I might have missed something.
Hi @Malaka
No need to setup git config for this task.
IF you follow the task description, it should be done.
SCP the /tmp/index.html
from Jump Host to /tmp
in Storage Server. Navigate to the Git repo at /usr/src/kodekloudrepos/<git-repo>
copy the /tmp/index.html
to the directory, add the file to staging area, commit it, and finally push.
Hi @Malaka,
To complete the task successfully, I followed these steps on the Storage Server:
- Copied the sample file from the jump host to the Storage Server:
scp /tmp/index.html natasha@ststor01:/tmp/index.html - Logged in to the Storage Server:
ssh natasha@ststor01 - switch to root: sudo -i
- Switched to the cloned repository:
cd /usr/src/kodekloudrepos/official - Moved the sample file into the repo:
cp /tmp/index.html . - git add index.html
- git commit -m “Add index.html”
- git remote -v
- git push origin master
- Verified that the commit landed in the bare repo:
git --git-dir=/opt/official.git log --oneline
Please check. Thanks.
These should pass the test.
Did you verify if the /tmp/index.html
exists in Storage Server after the copying step-1?