Commit and push Git changes from the Codetogit sidebar.
Features
-
Manual commit + push via sidebar button.
-
Auto-generated commit messages from staged changes.
-
Optional GitHub credentials storage using VS Code SecretStorage.
-
Branch allowlist safety.
Commands
-
Codetogit: Commit & Push -
Git Auto Save Push: Set GitHub Credentials -
Git Auto Save Push: Clear Saved Credentials
Settings
-
gitAutoPush.commitMessageTemplate: auto-generated message template ({summary},{files},{timestamp}) -
gitAutoPush.allowedBranches: branches allowed for commit and push -
gitAutoPush.pullRebaseBeforePush: pull rebase before push -
gitAutoPush.autoStageAll: stage all changes -
gitAutoPush.showNotifications: show success/error popups
Setup
-
Make sure Git is installed and repository has a GitHub remote.
-
Install dependencies and compile:
-
npm install -
npm run compile
-
-
Press
F5in VS Code to launch extension host. -
In extension host:
-
Open the Codetogit sidebar
-
Optional: save GitHub credentials
-
Save your files, then click Commit & push
-
Recommended Authentication
Use one of these:
-
SSH keys configured in Git.
-
Git credential manager.
-
PAT via the extension command (
Set GitHub Credentials).