I was working on the Git cherry-pick tasks (e.g., /opt/media.git cloned in /usr/src/kodekloudrepos/media).
- The main steps I followed:
- Fixed repo ownership (
chown) and added safe.directory to bypass “dubious ownership” errors. - Configured
user.nameanduser.emailfor Git commits. - Checked the
featurebranch logs, found the commit with message “Update info.txt”. - Switched to
masterand rangit cherry-pick <commit-hash>. - Fixed ownership of the bare repo in
/opt/...to allowgit push origin master. - Copied
info.txtto/tmp/media/info.txtand set proper permissions. - Verified with:
- Fixed repo ownership (
grep -qs -- 'Welcome to xFusionCorp Industries!' /tmp/media/info.txt
→ Output: OK ![]()
Even though I completed all steps and validated manually, the platform sometimes returned:
Unexpected exit code 2 ... grep -qs -- 'Welcome to xFusionCorp Industries!' /tmp/media/info.txt
So the task shows as failed, but the manual check confirms everything is correct.

