Skip to main content

Command Palette

Search for a command to run...

5.Delete Git Branch

Updated
1 min readView as Markdown
5.Delete Git Branch
T

Cloud & SRE specializing in AWS and DevOps. I share my ongoing learning journey through practical tutorials and insights. Let's grow together.

Step 1: Connect to the Storage Server

ssh natasha@ststor01
# Password: Bl@kW

Step 2: Navigate to the Repository

cd /usr/src/kodekloudrepos/blog

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

Resources & Next Steps


Credits

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

More from this blog

W

Whispering Cloud Insights

88 posts

Documenting my path to cloud journey. Sharing lessons, tutorials, and insights from my continuous learning journey. Learn with me.