The attribution requirements mentioned in another answer do not apply here, they are only valid for using content from Stack Overflow somewhere else and not the other way around.
With "is it ok" I take it that you mean to ask if you are allowed to do that by law, i.e. if it is legal to do so.
What you want to do is reproducing content on Stack Overflow that you haven't created yourself and that currently resides on GitHub. That means you cannot readily license it to Stack Overflow the typical way (which assumes you are the sole content creator).
Posting on Stack Overflow implies that you are allowed to use the material that you use to be published under the current content license here (i.e. CC-BY-SA-4.0).
Since the content is published on GitHub, it's worth looking at their terms of service. Content published on GitHub can be freely re-published on GitHub but nowhere else without permission of the author unless the repository grants additional rights.
Indeed the repository in question grants additional rights, i.e. the content of this repository including the issues is under the 3-clause BSD license.
However, that doesn't necessarily help you, because the 3-clause BSD license may not be compatible with CC-BY-SA-4.0 (only the FreeArt license, the GPLv3 license and other CC-BY-SA licenses are officially compatible).
That means that you may have breached the copyright with your post on Stack Overflow (your attribution might not change that) and the original content owner Matthias Schoettle could potentially file a DMCA take down request towards Stack Overflow and the company might have to remove that post.
To prevent that you could have asked Matthias Schoettle for permission to post his content under the content license here, but so far you haven't done that and he wouldn't necessarily have to agree to any such proposal.
Of course you could argue that the copy of this small piece of text falls under fair use but there are boundaries to fair use and they may vary from country to country.
In any case, Stack Overflow requires you additionally to properly attribute all material that you contribute, so linking to the GitHub issue is a must.
Finally let me say that paraphrasing that little piece of text isn't really difficult.
For example just change
In the source code I discovered that it is possible to specify an admin_class for the reverse inline: .. And then in the BarInline: ..This hides the "Delete" checkbox.
to
It is possible to specify an admin_class that does the reverse inline .. and also in BarInline .. hiding the "Delete" checkbox (see also [link to GitHub issue])
I hope it became clear where the legal pitfalls might be. I'm not a lawyer, so take it with a grain of salt. You could say that your case is "fair use" but paraphrasing such small snippets might be the safer option while being not much more work really.