mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 14:48:39 +08:00 
			
		
		
		
	example fetch all history for all tags and branches (#115)
This commit is contained in:
		
							parent
							
								
									299dd5064e
								
							
						
					
					
						commit
						c85684db76
					
				| 
						 | 
					@ -85,6 +85,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
 | 
				
			||||||
- [Checkout submodules](#Checkout-submodules)
 | 
					- [Checkout submodules](#Checkout-submodules)
 | 
				
			||||||
- [Fetch all tags](#Fetch-all-tags)
 | 
					- [Fetch all tags](#Fetch-all-tags)
 | 
				
			||||||
- [Fetch all branches](#Fetch-all-branches)
 | 
					- [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
 | 
					## Checkout a different branch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -199,6 +200,14 @@ jobs:
 | 
				
			||||||
    git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
 | 
					    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
 | 
					# License
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The scripts and documentation in this project are released under the [MIT License](LICENSE)
 | 
					The scripts and documentation in this project are released under the [MIT License](LICENSE)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user