In this session of the DevOps Series, the objective was to support a development team's new feature implementation by creating a dedicated branch in the project repository on the Nautilus Storage Server.
Lab Objectives
The goal was to create a new branch named xfusioncorp_media from the master branch within the existing Git repository to allow the team to maintain a separate history for new application features.
Key Procedural Steps
Server Access:
Logged into the storage server (ststor01) as user natasha.
Escalated privileges to the root user using sudo -i to address ownership errors and gain full access to the repository.
Repository Navigation:
Navigated to the project repository located at /usr/src/kodekloud_repos/media.
Verified the current Git status and identified that the repository was initially on a different branch.
Branch Management:
Switched to the master branch to ensure it served as the correct starting point for the new branch.
Created and switched to the new branch simultaneously using the command:
git checkout -b xfusioncorp_media
Compliance and Verification:
Verified the creation of the new branch using git branch.
Adhered to the requirement of not making any changes to the existing code within the repository.
Verification:
The task was successfully validated through the laboratory interface, confirming that the new branch was correctly branched from master and available in the repository.
#DevOps #Git #LinuxAdmin #SourceControl #Nautilus #LabWalkthrough