Automatic fetch keeps remote-tracking information current for repositories open in GitComet.
In Settings → Remotes, turn on Automatically fetch repositories. It is off by default. Fetch interval (minutes) starts at 30 and accepts whole numbers from 5 to 1,440. An interval saved below 5 minutes by an earlier version becomes 5. Press Enter or leave the field to save a valid value. Invalid input leaves the saved interval unchanged. The interval is remembered while automatic fetching is off.
The setting applies to every open workspace window. Enabling it queues a fetch for repositories already open. Opening or restoring a repository also queues a fetch, including tabs that have not been selected, unless Git fetched it within the interval, including from the command line. Such a tab shows its last known incoming count instead. Repositories restored when GitComet starts wait a minute before their first automatic fetch. Fetches continue while the app is minimized. Saved workspaces whose windows are closed do not participate.
Automatic fetch uses the same remote selection, refspecs, and pruning preference as Fetch all. It updates remote information without initiating pull, merge, rebase, or checkout. The existing pruning safeguards for local branches and tags also apply. A force push overwrites only the remote tip its confirmation showed when it opened, so a fetch while the dialog is open cannot add commits to what it replaces.
Fetches run one repository at a time, the selected tab's repository first. Fetches to the same server start at least two seconds apart, and servers that were contacted least recently go first. Multiple windows showing the same folder share one schedule. Linked worktrees of one repository share one fetch and one schedule, because a fetch from any of them updates the same remote-tracking branches. A worktree whose own Git configuration fetches different remotes or refspecs keeps its own schedule. Each shared fetch checks this again, so a worktree whose configuration changes later gets its own fetch. A manual Fetch all in one worktree restarts the interval for the others that share its fetch. Manual remote commands and repository maintenance take priority over automatic fetching.
The next attempt is scheduled after the previous attempt finishes. A successful manual Fetch all restarts that interval. Most open repositories change rarely, so a repository with no selected tab waits twice the interval after a fetch that found nothing new, and four times after the next one. New commits, a manual Fetch all, or selecting one of its tabs returns it to the interval. The selected tab's repository always uses the interval. Changing the interval updates the schedule. Returning from sleep causes one overdue attempt rather than replaying missed intervals. Switching tabs or focusing the app does not request an extra fetch.
Closing the last tab for a folder cancels its automatic fetch. Turning the setting off cancels queued and running automatic fetches. Fetching stops when GitComet exits.
Repository tabs show ↓N in place of the repository initials when their current branch is behind its configured remote upstream, including inactive and restored tabs that have not been selected. Counts above 99 show as ↓99+. Hover the tab to see the branch, upstream and exact incoming commit count. While a tab shows its loading spinner or missing-folder warning, that takes the place of the count. Selecting a tab keeps the indicator; it clears when the branch has no incoming commits. Changes on unrelated remote branches do not add an indicator.
A grey count is last-known tracking information that may be out of date, for example after a failed check. The next successful check makes it current again, even when it finds nothing new. A count stays grey while automatic fetch skips its remote, because the remote is paused or its server is waiting out a failure. A fetch in progress leaves the last count as it is. The tab tooltip explains its freshness. Unknown counts, detached HEAD and branches without a remote upstream have no incoming indicator. These indicators also reflect manual fetches and refreshes when automatic fetching is off.
Open the Pull dropdown to see the automatic-fetch result and the last successful fetch time. A failure includes its reason in the menu; hover a truncated reason to read it in full. Existing data stays visible when the remote is unavailable.
Automatic fetch can use stored credentials and unlocked SSH keys. It does not open sign-in dialogs or interrupt the current task with notifications. If authentication needs input, use Fetch all to complete it.
Automatic fetch avoids contacting a remote again when retrying cannot help. When several remotes fail in one fetch, each is judged by its own error:
- Sign-in needed or repository missing. Automatic fetch stops contacting that remote until a manual Fetch all succeeds. The Pull menu names the paused remotes. Other remotes of the repository keep fetching.
- Server unreachable or busy. Automatic fetch stops contacting that server for every repository: for 5 minutes after an unreachable server, or 15 after a rate limit or server error, doubling up to an hour. When the wait ends, one repository tries the server before the others do.
- Every failure doubles the repository's next wait, up to 8 times the interval, and never past six hours unless the interval is longer. The Pull menu shows the next attempt.
A successful manual Fetch all clears these waits for its repository and its servers. So does turning automatic fetching off and on again, or restarting GitComet.