git-extras icon indicating copy to clipboard operation
git-extras copied to clipboard

`git feature` not re-opening the branch on subsequent calls?

Open brandonparsons opened this issue 11 years ago • 3 comments
trafficstars

The readme seems to indicate that subsequent calls to git feature XYZ should check that branch out. It doesn't appear to be working for me... am I doing something wrong?

$ 
brandon at MacMini in ~/code/myapp on master
$ git feature myfeature
brandon at MacMini in ~/code/myapp on feature/myfeature
$ git checkout master
Switched to branch 'master'
brandon at MacMini in ~/code/myapp on master
$ git feature myfeature
brandon at MacMini in ~/code/myapp on master
$ 

I was expecting to be on branch feature/myfeature at the end there, but am on master.

brandonparsons avatar Jul 06 '14 22:07 brandonparsons

I was wondering too, It seems like it was it was removed in a79c51c by @jgallen23. I am not sure about the reason for removal, but we need to choose between:

  • reverting a79c51c
  • editing README to prevent confusion

I am in favor of reverting.

EDIT: also duplicate of #180

sanusart avatar Jul 24 '14 06:07 sanusart

This is a duplicate of #180, which was closed with #263, but I'm commenting here again as it was re-broken with #441...

dwijnand avatar Dec 31 '15 11:12 dwijnand

In version 6.3.0 the readme doesn't say anything about git feature. The current behavior writes an error message stating that the branch already exists. IMHO that is a good thing. I'd expect to have a brand new branch after calling git feature and that error message would help me not create a mess.

tfendin avatar Dec 30 '21 21:12 tfendin