Skip to content

Instantly share code, notes, and snippets.

View marc-h38's full-sized avatar

Marc marc-h38

View GitHub Profile
#!/bin/sh
set -e
# Prints all the git branch --set-upstream-to= commands that must be run
# after a remote changed the name of one of its branches.
# set -x
# default values, use environement to override
@marc-h38
marc-h38 / shallow_backfire.sh
Last active April 25, 2023 22:33
Shallow cloning creates a pull request with 1 million commits
#!/bin/sh
# Marc Herbert @ gmail.com
set -e
set -x
# git clone --depth "shallow cloning" can save continuous integration a
# lot of time. This demo shows how shallow cloning can turn a
# single-commit pull request into a pull request with 1 million commits!