You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: removing old branches from the origin
As a developer having a bunch of leftover branches in the origin repo
I want to be able to clean them out using a single command
So that I keep my repo tidy and manageable.
- run "git cleanup 'kg-*'" to delete all branches on the remote that are not checked out in the local repository
- the command prints each branch and gets confirmation before deleting it
Scenario: cleaning up remote branchesGiven the branches:
| NAME | PARENT | LOCATION | | feature_1 | master | remote | | feature_2 | master | localandremote |And I am on the "feature_2" branch
And I have an uncommitted file
When running "git cleanup" and entering:
| WHENISEE | THENIENTER | | deletebranchfeature_1 | yes |Then my workspace contains the branches:
| NAME | PARENT | | feature_2 | master |And I am still on the "feature_2" branch
And I still have the uncommitted file
Alternative to #655
The text was updated successfully, but these errors were encountered: