DEV Community

Cover image for 5.Delete Git Branch
Thu Kha Kyawe
Thu Kha Kyawe

Posted on

5.Delete Git Branch

Step 1: Connect to the Storage Server

ssh natasha@ststor01
# Password: Bl@kW
Enter fullscreen mode Exit fullscreen mode

Step 2: Navigate to the Repository

cd /usr/src/kodekloudrepos/blog
Enter fullscreen mode Exit fullscreen mode

Step 3: Delete the Local Branch

# Check Git Status
git status

# To add an exception for this directory, call:
git config --global --add safe.directory /usr/src/kodekloudrepos/blog

# Checkout to master
sudo git checkout master

# Delete the local branch
sudo git branch -d xfusioncorp_blog
Enter fullscreen mode Exit fullscreen mode

Resources & Next Steps


Credits

  • All labs are from: KodeKloud
  • Thanks for providing them.

Top comments (0)