Removing All Files Within a Git Branch

Ole Ersoy
1 min readSep 27, 2020
Image by Jill Wellington from Pixabay

Scenario

We want to remove all the files within our gh-pages branch.

Approach

git rm -r .

--

--