The Nautilus development team needs to incorporate a sample index.html
file into the recently cloned beta.git
repository on the Storage server.
- Copy the sample
index.html
file from the jump host to the Storage server. - Add and commit the file to the
beta.git
repository located at/usr/src/kodekloudrepos/beta
. - Push the changes to the master branch.
-
Copy the
index.html
File from the Jump Host:- Use the
scp
command to securely copy the sampleindex.html
file from the jump host to the Storage server:scp /tmp/index.html your_username@storage_server_ip:/usr/src/kodekloudrepos/beta/
- Use the
-
Log in to the Storage Server:
- SSH into the Storage server:
ssh your_username@storage_server_ip
- SSH into the Storage server:
-
Navigate to the
beta
Repository:- Change directory to the
beta
repository:cd /usr/src/kodekloudrepos/beta
- Change directory to the
-
Add the
index.html
File to the Repository:- Add the file to the repository:
git add index.html
- Add the file to the repository:
-
Commit the Changes:
- Commit the changes with an appropriate commit message:
git commit -m "Add sample index.html file"
- Commit the changes with an appropriate commit message:
-
Push the Changes to the Master Branch:
- Push the committed changes to the remote
master
branch:git push origin master
- Push the committed changes to the remote
- scp: Securely copies files between hosts over SSH.
- git add: Stages changes for the next commit.
- git commit: Records changes to the repository.
- git push: Uploads local repository content to a remote repository.