I'm working on a branch, say "experimental" branch which I branch out from my master branch.Then, I generate a user model in experimental branch, but does not add them to 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 hope to undo all those changes, but all the files above still show.
Anyone please shed some light on me?