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

maintenance: add prune-remote-refs task #1838

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pastelsky
Copy link

No description provided.

Copy link

gitgitgadget bot commented Dec 17, 2024

There are issues in commit 7076784:
maintenance: add prune-remote-refs task
Commit not signed off

@pastelsky pastelsky force-pushed the sk/add-remote-prune-maintenance branch 6 times, most recently from aed9350 to 849e20a Compare December 17, 2024 13:17
Remote-tracking refs can accumulate in local repositories even as branches
are deleted on remotes, impacting git performance negatively. Existing
alternatives to keep refs pruned have a few issues — 

1. The `fetch.prune` config automatically cleans up remote ref on fetch/pull,
but also pulls in new ref from remote which is an undesirable side-effect.

2.`git remote prune` cleans up refs without adding to the existing list
but requires periodic user intervention.

This adds a new maintenance task 'prune-remote-refs' that runs 'git remote prune'
for each configured remote daily. This provides an automated way to clean up stale
remote-tracking refs.
This task is disabled by default.

Signed-off-by: Shubham Kanodia <[email protected]>
@pastelsky pastelsky force-pushed the sk/add-remote-prune-maintenance branch from 849e20a to 1af8661 Compare December 18, 2024 03:38
Copy link

gitgitgadget bot commented Dec 18, 2024

There are issues in commit 1af8661:
maintenance: add prune-remote-refs task
Lines in the body of the commit messages should be wrapped between 60 and 76 characters.
Indented lines, and lines without whitespace, are exempt

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

Successfully merging this pull request may close these issues.

1 participant