To post [this question](https://emacs.stackexchange.com/q/14509/5187) and [this question](https://emacs.stackexchange.com/q/15197/5187), I had to copy the contents of minibuffer.

I tried to copy from minibuffer but it didn't worked. 

I came across [this discussion](https://groups.google.com/forum/#!topic/gnu.emacs.help/zFYN_Ife7lA)  and checked `*Messages*` buffer also. But minibuffer contents won't be there always. 

Is it possible to copy mini buffer contents? How?

**Update**:

I am in a python process buffer and run `kill-this-buffer`, emacs will show this message in minibuffer

> Buffer "*Python*" has a running process; kill it (y or n)?

I want to copy that text.

**Update**:

In above example that message will be available in `*Messages*` buffer,  but  if  am creating a new branch using magit `b c`, it will prompt with message 

>  Create branch starting at (default master):

which  will  **NOT** be available in `*Messages*`. I need to copy this text also.