SirRupertIII
SirRupertIII

Reputation: 12595

Clear unstaged files from my git status

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

Answers (1)

user456814
user456814

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

Related Questions