News for hackers. Stuff that matters.
Re:How to teach Git by hoorayimhelping on Wednesday January 16, 2019 @11:10AM (#18922025)

    git config --global alias.lg "log --color --graph --oneline --decorate"
for easy copy-pasting. HN doesn't support backticks or triple backticks like a lot of markdown parsers. To get fixed-width fonts, you have to insert 4 paces at the beginning of the 'code' block.
Re:How to teach Git by Stratoscope on Wednesday January 16, 2019 @07:18PM (#18927102)
Two spaces (unlike Markdown).

Of course four will work, it just adds more indentation.

Re:How to teach Git by u801e on Wednesday January 16, 2019 @09:26PM (#18927763)
In some mobile browsers, doing this will result in the fixed-width font line getting cut off when viewing the resulting post.