Skip to content

single-commit: true doesn't remove old deployments? #1446

Closed Answered by JamesIves
chriscarrollsmith asked this question in Q&A
Discussion options

You must be logged in to vote

This option removes the commit history from the branch you are pushing code to. It cannot remove the deployment history from the GitHub Pages workflow as this isn't managed by the action, instead that's managed by an internal process from GitHub themselves.

If you look at the commit history you'll see you have just a single commit on the gh-pages branch: https://github.com/babafaqirchand/babafaqirchand.github.io/commits/gh-pages/

This option can be toggled to true if you'd prefer to have a single commit on the deployment branch instead of maintaining the full history. Using this option will also cause any existing history to be wiped from the deployment branch.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by JamesIves
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants