SourceTree和Git Flow仓库初始化 [英] SourceTree and Git Flow repository init

查看:649
本文介绍了SourceTree和Git Flow仓库初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

sh.exe C:\Users\username\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow\git-flow init -d

flags:WARN  -d --

C:\Program Files (x86)\Atlassian\SourceTree\tools\getopt.exe: invalid option -- 

flags:FATAL unable to parse provided options with getopt.

我联系了github帐户,并希望"Git Flow"并显示如上的消息.

I contacted github account, and want to "Git Flow" and it shows a message like above.

推荐答案

有一个

看来,问题出在安装SourceTree之前是错误的git flow安装.
我删除了所有git flow安装数据并重新安装了SourceTree(也删除了所有SourceTree数据之后)

It appears though that the issue was a faulty git flow installation prior to the SourceTree install.
I removed all git flow installation data and reinstalled SourceTree (after removing all SourceTree data as well)

重新安装SourceTree后,一切正常! :)

After reinstallation of SourceTree, all is woorking fine! :)

您可以查看有关

SourceTree不会在系统上全局安装git-flow.
如果要直接从命令行访问它,则路径应为

SourceTree does not install git-flow globally on your system.
If you want to access it directly from command line, the path should be

%USERPROFILE%\AppData\Local\Atlassian\SourceTree\gitflow_local

MsysGit中的git-flow命令需要一些库才能正常工作.参见 https://github.com/nvie/gitflow/wiki/Windows#wiki- msysgit

The git-flow command in MsysGit requires some libs to be in place to work. See https://github.com/nvie/gitflow/wiki/Windows#wiki-msysgit

如果您真的想在git bash上使用git-flow,我强烈建议您按照上面的链接中的说明安装新副本.
如果您打算在命令行和SourceTree中同时使用git-flow,请在上面的链接中使用nvie代码.
如果只想在命令行中使用,请安装叉子 https://github.com/petervanderdoes/gitflow.效果更好(但是),但您应该注意不要再使用GUI发出git-flow命令.

If you really want to use git-flow at the git bash, I strongly recommend you to install a fresh copy using the instructions in the link above.
If you plan to use git-flow BOTH in the command line and in SourceTree, then use the nvie code in the above link.
If you want to use ONLY in the command line, install the fork https://github.com/petervanderdoes/gitflow. It works (far) better, but you should pay attention to NEVER use the GUI anymore to issue git-flow commands.

这篇关于SourceTree和Git Flow仓库初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆