Skip to content

Commit

Permalink
example fetch all history for all tags and branches (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple committed Dec 16, 2019
1 parent 299dd50 commit c85684d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

0 comments on commit c85684d

Please sign in to comment.