Doug Smith
Doug Smith

Reputation: 29314

Accidentally pulled down a bunch of git files, how do I remove them?

I was in the wrong folder, and I did git init followed by git pull *repo*, now my folder is cluttered with files I don't want. Is there a way to get rid of them all?

Upvotes: 0

Views: 73

Answers (1)

cforbish
cforbish

Reputation: 8819

Since you just did the init (assumes you are not on a windows OS):

dir=`pwd`
cd ..
rm -rf $dir
mkdir $dir
cd $dir
git init

Upvotes: 1

Related Questions