Robo Kiwi

  • Blog
  • Wiki
  • GitHub

Contents

  • Delete branch
  • Create an empty branch
  • Clear the working directory
Wiki / Source Control / Git
1 min read

Git

Git recipes and tricks

Git

Delete branch

git branch -d <branch>
git push -d <remote> <branch>

Create an empty branch

git checkout --orphan <branch>
git reset --hard

Clear the working directory

git rm --cached -rf .
  • .NET
    • Testing
    • .NET Patterns
    • Asynchronous Programming
    • MSBuild
  • Microsoft Dynamics
  • Apps & Tools
  • Data & Databases
    • SQL
  • Debugging
  • JavaScript
  • Microsoft Office
  • Practices
  • Principles & Theory
  • Scripting
    • PowerShell
  • Security
  • Source Control
  • Web Technologies
    • JavaScript
    • React
  • Windows
Copyright © David Moore 2021

Netlify badge Built with Hugo