In this technical lab, we demonstrate how to synchronize project files between different server environments—moving from a Jump Host to a Storage Server—and finalizing those changes within a Git repository.
What you will learn in this session:
Inter-Server File Transfer (SCP): * Understanding the difference between cp (local copy) and scp (secure copy between different machines).
Moving an index.html file from a temporary directory on the Jump Host to the /tmp directory on the ststor01 server.
Remote Repository Management:
Navigating the storage server as the user Natasha to locate cloned project repositories.
Deploying the new index.html file into the target repository directory.
Git Workflow Mastery:
Staging: Using git add to prepare the new HTML file for versioning.
Committing: Writing descriptive commit messages to document the addition of the "blog project" file.
Pushing: Authenticating and pushing local changes to the Master Branch to synchronize with the central origin server.
Privilege & Troubleshooting: Utilizing sudo and switching to root privileges to overcome permission errors during the Git push process.
By the end of this tutorial, you will be able to confidently move code across your infrastructure and update remote repositories using standard DevOps command-line tools.
#OtterTech #Git #DevOps #SCP #Linux #SystemAdmin #VersionControl #MasterBranch #TechTutorial