From c85684db76ba6ef08713c10cf4befe3318887415 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Mon, 16 Dec 2019 10:45:02 -0500 Subject: [PATCH] example fetch all history for all tags and branches (#115) --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 3b97f52..99b9c1f 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous - [Checkout submodules](#Checkout-submodules) - [Fetch all tags](#Fetch-all-tags) - [Fetch all branches](#Fetch-all-branches) +- [Fetch all history for all tags and branches](#Fetch-all-history-for-all-tags-and-branches) ## Checkout a different branch @@ -199,6 +200,14 @@ jobs: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* ``` +## Fetch all history for all tags and branches + +```yaml +- uses: actions/checkout@v2 +- run: | + git fetch --prune --unshallow +``` + # License The scripts and documentation in this project are released under the [MIT License](LICENSE)