I'm working on a branch, say "experimental", which I branch out from my master branch. Then, I generate a user model in the experimental branch, but don't add them to the index yet.
What do I have to do if I want to discard all the changes of the files recently added in my experimental branch? The untracked files are listed as below:
$ git status
On branch new_chick
Untracked files:
(use "git add <file>..." to include in what will be committed)
.project
app/models/user.rb
db/migrate/
test/fixtures/users.yml
test/unit/user_test.rb
I tried to run "git reset --hard" in the hope to undo all those changes, but all the files mentioned above still show up.