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 cleanup" command #767

Closed
kevgo opened this issue Dec 19, 2016 · 1 comment
Closed

"git cleanup" command #767

kevgo opened this issue Dec 19, 2016 · 1 comment

Comments

@kevgo
Copy link
Contributor

kevgo commented Dec 19, 2016

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 branches
    Given the branches:
      | NAME      | PARENT | LOCATION         |
      | feature_1 | master | remote           |
      | feature_2 | master | local and remote |
    And I am on the "feature_2" branch
    And I have an uncommitted file
    When running "git cleanup" and entering:
      | WHEN I SEE              | THEN I ENTER |
      | delete branch feature_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

@charlierudolph
Copy link
Collaborator

Closing as with git ship now merging via the github api, you shouldn't have branches like this left over.

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

No branches or pull requests

2 participants