简体   繁体   中英

git flow feature finish <branch> throwing "Fatal: Could not check out branch 'develop'."

I asked this on the repo itself, but thought it might hit a wider audience here on SO.

I'm not sure why this is happening on an existing project that I added gitflow to. When I run: git flow feature finish I do get "Switched to branch 'develop'" but then immediately followed by "Fatal: Could not check out branch 'develop'." I then have to merge the branch manually and delete it.

I tried creating just a test project and I don't seem to get that error. It seems to only happen with the "feature" option. If I use "release" or "hotfix" so far it has been working.

Any ideas what might be the problem?

UPDATE: seems this no longer works with releases either.

problem solved. I have a post-checkout script that had an exit in it that was causing the issue. :(

这是我的解决方案: -删除文件夹“.git” -git init -git config --global user.email “your@email.com” -git config --global user.name “Your name” -git flow init

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM