Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git Duplicate Branch Validation Before Command Execution #243390

Open
batsev opened this issue Mar 12, 2025 · 0 comments
Open

Git Duplicate Branch Validation Before Command Execution #243390

batsev opened this issue Mar 12, 2025 · 0 comments
Assignees

Comments

@batsev
Copy link

batsev commented Mar 12, 2025

Currently in VS Code, when creating a Git branch, if a branch with the same name already exists, the command fails after execution, requiring the user to re-run the command with a different branch name. This is inefficient and frustrating, especially when compared to IDEs like IntelliJ IDEA, which validate branch names before executing the command.

Describe the solution you'd like
I would like VS Code to implement a pre-execution validation check for Git branch creation. Before running the command, VS Code should check if a branch with the same name already exists and notify the user immediately, preventing the need to re-run the command.

Describe alternatives you've considered
An alternative would be to manually check for existing branches using git branch --list before running the command, but this is cumbersome and defeats the purpose of having an integrated Git experience in VS Code.

Additional context
This feature is already available in IntelliJ IDEA, which provides a seamless experience by validating branch names upfront. Implementing this in VS Code would significantly improve the developer workflow and reduce frustration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants