This Visual Studio Code extension adds two convenient status bar buttons to simplify Git operations: "Git Update" and "Git Push".
Features
- Git Update: Resets the current branch to match the remote, cleans untracked files, and pulls the latest changes.
- Git Push: Adds, commits, and pushes changes. If no repository exists, it attempts to initialize one and set up a remote (with GitHub CLI support).
Installation
- Download the
.vsix file from the GitHub repository.
- Open Visual Studio Code.
- Go to the Extensions view (
Ctrl+Shift+X ).
- Click on the "..." menu in the top-right corner and select "Install from VSIX...".
- Select the downloaded
.vsix file to install the extension.
Usage
- Open your project folder in Visual Studio Code.
- Use the following buttons in the status bar:
- Git Update: Click to reset the current branch to the latest state in the remote repository.
- Git Push: Click to add, commit, and push changes to the remote repository.
Prerequisites
- Git: Ensure Git is installed and configured on your system.
- GitHub CLI: Install the GitHub CLI (
gh ) for repository creation and remote setup.
- Authentication: Set up SSH keys or a personal access token for GitHub.
Troubleshooting
- Git Update fails: Ensure the current branch is tracking a remote branch.
- Git Push fails: Verify that the repository is initialized and a remote is set up. If the GitHub CLI fails, manually configure the remote.
- GitHub CLI not found: Install the GitHub CLI and ensure it is in your system's PATH.
Demo

License
This extension is licensed under the MIT License. See the LICENSE file for details.
| |