用sourcetTree准备创建一个feature时出现以下错误:
Fatal: Not a gitflow-enabled repo yet. Please run ‘git flow init’ first.
(可能是我删除了develop分支的原因)
解决办法如:

  1. 找到当前工程目录下.git\config文件
    在这里插入图片描述
  2. 移除所有[gitflow 开头的内容
  3. 重启SourceTree
  4. 在SourceTree主菜单重新初始化Git Flow:Repository > Git Flow > Initialise Repository

更多推荐