Question: The Nautilus development team started with new project development. They have created different Git repositories to manage respective project's source code. One of the repo /opt/apps.git was created recently. The team has given us a sample index.html file that is currently present on jump host under /tmp. The repository has been cloned at /usr/src/kodekloudrepos on storage server in Stratos DC.
Copy sample index.html file from jump host to storage server under cloned repository at /usr/src/kodekloudrepos, add/commit the file and push to master branch.
Copy sample index.html file from jump host to storage server under cloned repository at /usr/src/kodekloudrepos, add/commit the file and push to master branch.
Solution:
sudo su
Copy the index.html file to storage server
scp /tmp/index.html natasha@ststor01:/tmp
Login to storage server
ssh natasha@ststor01
Copy the file
cp /tmp/index.html /usr/src/kodekloudrepos/apps/
Then go to repo
git add .
git commit -m "added index.html file"
git push origin master
0 comments:
Post a Comment