Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-16 10:45:02 -0500
committerGitHub <noreply@github.com>2019-12-16 10:45:02 -0500
commitb49cea0125b7e9d0bbacb9720c8e874296bcea40 (patch)
tree43e569b80aba94f8a1beb5520688ed9425e1e992
parentc1d1cd6a24af0fb80d2719b26c1735427c8930a3 (diff)
example fetch all history for all tags and branches (#115)
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
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)