In another question someone did this:
$ git checkout staging
M app/views/comments/index.html.erb
M app/views/devise/registrations/new.html.erb
M app/views/devise/sessions/new.html.erb
M app/views/layouts/application.html.erb
M app/views/songs/contact.html.erb
M app/views/songs/faq.html.erb
M app/views/songs/index.html.erb
M app/views/songs/new.html.erb
M app/views/songs/new_songs.html.erb
Switched to branch 'staging'
How is this possible? git usually refuses to change branch in case of uncommitted changes.
I played a bit, but did really not manage to get in such a situation. - What are the steps to get it a situation producing something like the above output?