In the twenty-fourth session of the DevOps Series, the focus was on implementing standard version control workflows by creating a dedicated feature branch. This approach allows the development team to build and test new features in isolation from the main codebase.
Lab Objectives
The objective was to create a new branch named xfusioncorp_news from the master branch within the existing repository located at /usr/src/kodekloudrepos/news on the Nautilus Storage Server.
Key Procedural Steps
Server Access:
Logged into the storage server (ststor01) as the user natasha.
Navigated to the project repository: cd /usr/src/kodekloudrepos/news.
Repository Status Check:
Verified the current state of the repository using git status.
Switched to the root user (sudo su -) to ensure full control over the repository files and path.
Managing Branches:
Checked the existing branches using git branch.
Identified that the repository was currently on a different branch (kodekloud_news).
Switched back to the source branch using git checkout master.
Creating the New Branch:
Created and immediately switched to the new feature branch using the command: git checkout -b xfusioncorp_news.
Verified the branch creation by running git branch again, confirming that xfusioncorp_news was now the active branch.
Verification
The lab was successfully completed by confirming the existence of the new branch. As per the requirements, no modifications were made to the actual code files, maintaining the integrity of the project during the branching process.
#DevOps #Git #VersionControl #Branching #LinuxAdmin #Nautilus #100DaysOfDevOps #OtterTech #Day24