Git Scheduler
Repository: https://github.com/therealgorgan/git-scheduler
Schedule future git pushes for specific repos and branches from inside VS Code.
What it does
- Adds a Git Scheduler button in the Activity Bar.
- Lets you create schedules (repo + branch + run time), optionally:
- apply a patch file or git stash at run time
- set a commit message (used if a commit is needed)
- Runs due schedules in the background (checks every 5 seconds).
- Safely handles multiple VS Code instances without duplicate execution.
How to use
- Open the workspace that contains the git repo(s) you want to schedule.
- Click Git Scheduler in the Activity Bar → Schedules.
- Click New Schedule and fill in (modal dialog):
- repository (must be a workspace folder that is a git repo)
- branch to push to
- Date & time to run (date/time picker)
- optional patch file OR git stash to apply
- optional commit message
You can also use the Command Palette:
Git Scheduler: New Schedule
Git Scheduler: Refresh
Git Scheduler: Run Now
Git Scheduler: Delete Schedule
Run behavior
At run time, Git Scheduler:
- Checks out the target branch (attempts to track
origin/<branch> if needed)
- Applies either:
- A git stash (if configured)
- A patch file (if configured)
- Stages all changes (
git add -A)
- If there are staged changes, commits them (uses your provided message, else a timestamped default)
- Pulls latest from remote (
git pull --rebase) to handle remote changes
- Pushes to
origin <branch>
Development
npm install
npm run compile
Press F5 to launch the Extension Development Host.
Install from VSIX
If you want to install locally, build the VSIX with:
npx --yes @vscode/vsce package
Then install with:
npm run build-vsix
code --install-extension ./git-scheduler-0.0.2.vsix
Or use a simpler one-liner:
npm run build-vsix && code --install-extension ./git-scheduler-*.vsix