Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Make remote branches easier to manage (perhaps, redefine git d-) #67

Open
salcode opened this issue Jan 15, 2018 · 1 comment
Open

Make remote branches easier to manage (perhaps, redefine git d-) #67

salcode opened this issue Jan 15, 2018 · 1 comment

Comments

@salcode
Copy link
Member

salcode commented Jan 15, 2018

Now that we've added

git delete-remote-tracking-branch <local branch name>

in #65, which makes it easy to delete a remote tracking branch based on a local branch name, we should look at other ways to make it easier to manage remote branches.

Current we have

git d-

defined as deleting the previous local branch (from #56). This is helpful for after we merge a feature. Since we generally want to remove the remote tracking branch as well, I'm wondering if we should redefine git d-.

Specifically, I'm wondering if git d- (or some other new command) should both:

  • delete the remote tracking branch associated with the previous branch
  • delete the local previous branch

There is some discussion of this idea in this comment on 65 and redefining git d- goes against the thoughts in that comment. However, I think it is worth reconsidering and making a major version jump on this project (e.g. 1.3.0 to 2.0.0) since this would be a breaking change.

@salcode
Copy link
Member Author

salcode commented Jan 16, 2018

While adding

git delete-remote-tracking-branch <local branch name>

in #65 seems like the solution to removing a remote branch I am coming across the situation where there is no tracking branch even though I've pushed my local branch to origin.

I'm not sure if this is an issue with determining the remote tracking branch or it is really isn't set.

Perhaps, we should also try to delete a branch from origin that has the same name as the current branch.

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

No branches or pull requests

1 participant