How to update a git shallow clone?

TL;DR Given that you have an existing –depth 1 repository cloned from branch B and you’d like Git to act as if you removed and re-cloned, you can use this sequence of commands: git fetch –depth 1 git reset –hard origin/B git clean -dfx (e.g., git reset –hard origin/master—I cannot put italics in the code-literal … Read more

Git clone: Redirect stderr to stdout but keep errors being written to stderr

A MingW update provide a new way to handle redirection with Git 2.15.x/2.16 (Q1 2018) See commit b2f5571, commit 1a172e4, commit 3f94442 (01 Nov 2017) by Johannes Schindelin (dscho). (Merged by Junio C Hamano — gitster — in commit 421f21c, 09 Nov 2017) mingw: add experimental feature to redirect standard handles Particularly when calling Git … Read more