The tasks are:
The xFusionCorp development team added updates to the project that is maintained under /opt/official.git repo and cloned under /usr/src/kodekloudrepos/official. Recently some changes were made on Git server that is hosted on Storage server in Stratos DC. The DevOps team added some new Git remotes, so we need to update remote on /usr/src/kodekloudrepos/official repository as per details mentioned below:
a. In /usr/src/kodekloudrepos/official repo add a new remote dev_official and point it to /opt/xfusioncorp_official.git repository.
b. There is a file /tmp/index.html on same server; copy this file to the repo and add/commit to master branch.
c. Finally push master branch to this new remote origin.
Which lab is this? Is this from “100 Days of Devops” (in which case, which day is this?) or is this regular KK Engineer (in which case I’d need topic, level, and task).
Hi @rob_kodekloud,
It is “100 Days of Devops” “Git manage remotes” “Day 26”. It has kept me stranded for couple of days.
This one is not too hard.
- You need to be on ststor01 (
ssh natasha@ ststor01).
- All of the repos belong to root, so
sudo -i to do that.
- I didn’t do any of the action as user natasha, which may be your error.
- Create the new remote (dev_official in your version of the task).
- Make sure you’re in branch master in the downstream repo (i.e., the one under /usr/src/kodekloudrepos).
- Add the index.html file to the branch.
-
git push dev_official master.
This sufficed for me to pass the task.
Thanks a lot @rob_kodekloud. It worked. I really appreciate.