Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.37 KB

Day22_Task.md

File metadata and controls

40 lines (31 loc) · 1.37 KB

Day 22: Cleaning Up Git Branches in Project Repository

Task

The Nautilus developers are engaged in active development on one of the project repositories located at /usr/src/kodekloudrepos/ecommerce. During testing, several test branches were created, and now they require cleanup.

Specifications:

  • Delete a branch named xfusioncorp_ecommerce from the /usr/src/kodekloudrepos/ecommerce Git repository on the Storage server in Stratos DC.

Steps:

  1. Log in to the Storage Server:

  2. Navigate to the Project Directory:

    cd /usr/src/kodekloudrepos/ecommerce/
  3. Check the Existing Branches:

    git branch
  4. Configure Safe Directory:

    git config --global --add safe.directory /usr/src/kodekloudrepos/ecommerce
  5. Remove the Branch:

    git branch -d xfusioncorp_ecommerce

Command Explanation:

  • ssh [email protected]: Connect to the storage server.
  • cd /usr/src/kodekloudrepos/ecommerce/: Navigate to the repository directory.
  • git branch: List all branches in the repository.
  • git config --global --add safe.directory /usr/src/kodekloudrepos/ecommerce: Add the directory to Git's safe list.
  • git branch -d xfusioncorp_ecommerce: Delete the specified branch.