Delete Git Branch

Tasks

  • Delete the xfusioncorp_beta branch from the Git repo at /usr/src/kodekloudrepos/beta on the Storage Server.

Steps

1

SSH into the Storage server:

ssh natasha@ststor01
2

Get the repo

cd /usr/src/kodekloudrepos/beta
sudo git config --global --add safe.directory /usr/src/kodekloudrepos/beta
3

Check if this branch is exist there or now

sudo git branch --list xfusioncorp_beta
4

Check the branches

sudo git branch
5

Change to the master

sudo git checkout master
6

Change the permissions

sudo chown -R natasha /usr/src/kodekloudrepos/beta
sudo chmod -R u+rwx /usr/src/kodekloudrepos/beta
7

Delete the branch

git branch -D xfusioncorp_beta
8

Verify now

git branch

Last updated