4.Update Git Repository with Sample HTML File
Thu Kha Kyawe

Thu Kha Kyawe @thukhakyawe_cloud

About: Certified in AWS, HashiCorp, and GitHub, I bring both strategic vision and technical expertise to design solutions that support business growth, optimize costs, and enhance operational efficiency.

Joined:
Nov 7, 2025

4.Update Git Repository with Sample HTML File

Publish Date: Nov 16
0 0

Step 1: Copy the file from jump host to storage server

First, from your jump host, copy the sample index.html file to the storage server:

# From jump host, copy the file to storage server
sudo scp /tmp/index.html natasha@ststor01:/home/natasha/
# Password: Bl@kW
Enter fullscreen mode Exit fullscreen mode

Step 2: Connect to the storage server

# Connect to storage server
ssh natasha@ststor01
# Password: Bl@kW
Enter fullscreen mode Exit fullscreen mode

Step 3: Move the file to the repository

# Move the file from /home/natasha to the repository directory
sudo mv /home/natasha/index.html /usr/src/kodekloudrepos/news
# Password: Bl@kW
Enter fullscreen mode Exit fullscreen mode

Step 4: Navigate to the repository and configure Git

# Navigate to the repository
cd /usr/src/kodekloudrepos/news

# Verify Git
git status

# To add an exception for this directory, call:
git config --global --add safe.directory /usr/src/kodekloudrepos/news


# Add the file to staging
sudo git add index.html

# Commit the file
sudo git commit -m "Add sample index.html file"
Enter fullscreen mode Exit fullscreen mode

Step 5: Push changes to master branch

# Push to master branch
sudo git push origin master
Enter fullscreen mode Exit fullscreen mode

Resources & Next Steps


Credits

  • All labs are from: KodeKloud
  • Thanks for providing them.

Comments 0 total

    Add comment