我有两个回购:市场和Android.当我将Android合并到Market时,请使用以下步骤:
cd market
git remote add android ../android
git fetch android
git merge --allow-unrelated-histories android/master
Run Code Online (Sandbox Code Playgroud)
但我得到这个错误:
ei @ localhost:〜/ market $ git merge --allow-unrelated-histories android/master error:unknown option`allow-unrelated-histories'
我的环境:Ubuntu LTS 14.04
ei@localhost:~/market$ git --version
git version 1.9.1
Run Code Online (Sandbox Code Playgroud)
这个选项是从Git合并中删除的,还是需要一些额外的配置?
任何帮助将不胜感激,谢谢!
我最近一直在寻找有关如何在CentOS 7中安全保存git凭证的解决方案。
我想保存多个git存储库的凭据。
我想出的解决方案是对任何版本的git 使用gnome-keyring。但是我遇到了一些问题。我发现很多帖子说这不是Redhat 7或Centos 7的好解决方案。并且它将被弃用。
git config --global credential.helper /usr/share/doc/git/contrib/credential/gnome-keyring/git-credential-gnome-keyrin
Run Code Online (Sandbox Code Playgroud)
但这对我不起作用,使用git时出错:
与gnome-keyring-daemon通信时出错
然后我升级了git的最新版本2.11+以使用libsecret,这似乎更易于使用。
我做过同样的事情。
git config --global credential.helper /usr/share/doc/git/contrib/credential/libsecret/git-credential-libsecret
Run Code Online (Sandbox Code Playgroud)
这似乎按预期工作。我的问题是,这是安全保存git凭据的好方法吗?您是否知道将CentOS凭证保存在CentOS计算机上的其他解决方案?