如何为 'git-together.active' 添加配置值

How do I add a config value for 'git-together.active'

运行 遇到问题,只好uninstall/reinstall Eclipse (Neon)。无法使用 IDE 连接回 git,所以我转到 Git Bash 命令行。

在尝试提交到我的本地存储库时,我输入了:

git commit -m "Added files after reconnected to source control"

这个returns:

Error: error getting git config for 'git-together.active'
Caused by: config value 'git-together.active' was not found; class=Config (7); code=NotFound (-3)

这听起来好像我在我的配置文件中缺少 'git-together.active' 的条目,但我找不到如何将其添加到我的配置的示例。我已经查看了所有 'related' 个问题,但找不到解决方案。

感谢您的指导,我是 git 新手。

检查您的 .bashrc 是否有任何 alias git=git-together,如 this question 中所示。

这也是为什么 git-一起有 issue 44

A paper cut felt among engineers relates to the practice of aliasing git with git-together and interacting with repositories that have opted out of git together config.

The UX looks a bit like this at the moment:

git commit -m "making changes"
Error: error getting git config for 'git-together.active'
Caused by: config value 'git-together.active' was not found; class=Config (7); >code=NotFound (-3)

which causes friction and friction is a turn off for wider adoption.

It would be great if instead this tool emitted a warning so that its visible that this repo a person is interacting with is not yet configured for git-together but allowed the git process to continue.

OP 提到没有找到别名:

After reinstalling Eclipse and getting it set up with Git, the problem went way.

感谢快速评论。检查别名并确保我没有 github.com/kejadlen/git-together 运行 后,我选择重新安装 Eclipse Neon 和 Git 扩展。这是一个商业决定(时间)。我在设置它时所做的一些事情纠正了这个问题,但我很生气我无法确定确切的步骤。

我在发布问题之前所做的所有研究都回到了回复者提到的内容。不喜欢这个解决方案,但是 Git 在命令行和 Eclipse 中都起作用。