Hacker News new | ask | show | jobs
by 74B5 1658 days ago
I am a little disappointed that mktemp as an intermediate is not mentioned.
1 comments

I agree, `mktemp` is very useful. I recently worked on a script that would check if you had a repo locally, if so update it, and otherwise clone it for you. `mktemp` made it a lot simpler, as I could just always clone it and be sure that I would have a freshly cloned state.