In this session of the Git Series, the objective was to update the remote configuration for a project on the Nautilus Storage Server and push local changes to a new remote repository.
Lab Objectives
The goal was to add a new remote origin to an existing Git repository located at /usr/src/kodekloudrepos/games and push the master branch to the server.
Key Procedural Steps
Server Access:
Logged into the storage server (ststor01) as the user natasha.
Navigated to the project directory: /usr/src/kodekloudrepos/games.
Managing Remotes:
Identified that the development team had updated the Git server hosted on the storage server.
Added a new remote named dev_game pointing to the updated repository path.
Verified the remote configuration using git remote -v.
Staging and Committing Changes:
Copied a new file, index.html, from the /tmp directory into the local repository.
Staged the new file using git add ..
Committed the change to the master branch with the message: "Add index.html".
Pushing to Remote:
Pushed the local master branch to the newly configured remote origin.
Command used: git push dev_game master.
Verification
The task was successfully completed by confirming that the index.html file was present in the repository and that the commit history on the remote server reflected the latest update.
#DevOps #Git #GitRemotes #VersionControl #LinuxAdmin #Nautilus #OtterTech