Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DX-5121: Add an option for blt deploy to reset target branch history #4531

Open
vbouchet31 opened this issue May 31, 2022 · 1 comment
Open
Labels
Enhancement A feature or feature request

Comments

@vbouchet31
Copy link
Contributor

When using BLT to deploy artifact to Acquia Git repository, BLT is generating a commit to the target branch.

However, we often don't really need to keep an history of commits on the Acquia Git repository and it is expected that artifacts can be regenerated at any time from the source repository.
With long and big projects, the Acquia Git repository size tend to grow and make code deployment longer due to the size. A workaround is to periodically and manually reset the target branch history.
It would be an interesting feature to have in blt deploy to reset the target branch history.

These are the commands I used so far for my testing:

git checkout $branch_name
git checkout --orphan $branch_name-tmp
git add .
git commit -m "Fresh orphan branch." --quiet
gir branch -D $branch_name
git branch -m $branch_name
git push -f origin $branch_name
@vbouchet31 vbouchet31 added the Enhancement A feature or feature request label May 31, 2022
@github-actions github-actions bot changed the title Add an option for blt deploy to reset target branch history DX-5121: Add an option for blt deploy to reset target branch history May 31, 2022
@morvans
Copy link

morvans commented Jan 22, 2024

Any update or direction from the BLT team on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A feature or feature request
Projects
None yet
Development

No branches or pull requests

2 participants