Commit, pull and push with live progress in VS Code. This matters most when a commit or push takes a long time.
Why I built this
Commits, pulls and pushes in VS Code would sometimes hang on me, and I couldn't tell whether a hook was still running, GPG was waiting for my passphrase, or git itself had stalled. I looked for an extension that showed what git was doing, didn't find one, and wrote this instead.
What you see
Push / pull: git's own percent, transfer rate, and an ETA based on the current step's speed.
Commit: which hook is running (pre-commit, lint-staged, husky, gpg, LFS), with an ETA based on how long your last 10 commits in that repo took.
Status bar: the ✓✓ ☁↓ ☁↑ buttons at the bottom left turn into a progress bar with percent and ETA while git runs, e.g. Pushing ▰▰▰▰▱▱▱▱▱▱ 47% ETA 31s. Hover it for the full details.
Output panel: "Git Progress" holds the full output of git and its hooks. Cancel stops the git command.
Use
Commit: type your message in the Source Control box and press Ctrl+Enter (Cmd+Enter on Mac) as usual. Git Progress runs the commit and shows its progress. With nothing staged or no message, the built-in commit runs instead, so its prompts still work. Turn this off with the gitProgress.commitShortcut setting.
Pull / push: click ☁↓ or ☁↑ in the status bar or the Source Control title bar. VS Code's own Sync button can't be taken over by an extension, so it still runs without progress.
Or run Git: Commit / Pull / Push with Progress from the command palette.
Limits
Git doesn't report a percent for commits, so the commit ETA comes from your past commit times. A new repo has no commit ETA until its first commit through the extension succeeds.
Push runs a plain git push, so a branch without an upstream fails, and the output panel shows why.