Reputation: 12595
I am just trying to setup a bitbucket repo with an existing app using git remote add origin https://url
and it adds 1136 files.. How can I clear all of that?
Upvotes: 0
Views: 75
Reputation:
If the files are untracked (i.e. have never been added to your Git repo before), then use the following:
git clean -df
Otherwise, use this:
git checkout -- .
Upvotes: 1