gpt4 book ai didi

git - 从 git 1.9.5 升级到最新的 2.6 我需要注意什么?

转载 作者:太空狗 更新时间:2023-10-29 12:47:52 28 4
gpt4 key购买 nike

我的所有项目都使用 1.x 版。

只升级到最新的 2.6 是否安全?

在工作站上,我使用 sourcetreee 和 git 扩展。

我们所有的存储库都存储在中央服务器中,作为我们的 origin 远程。

最佳答案

是的,git 2.6 将毫无问题地打开最初使用 1.9.x 创建的存储库。
最佳做法是确保服务器上的 git 版本大于或等于客户端使用的版本,但实际上,几个月来我一直在使用 2.x 客户端推送到 1.9.x 服务器,没有任何问题。

检查 few settings that have changed with git 2.0 though :

In Git 2.0 the push.default has been changed to simple which is narrower in scope – more specific and more intuitive – it will now only push:

  • The current branch to the branch with the same name only when the current branch is set to integrate with that remote branch on the same remote;
  • The current branch to the branch with the same name, if you are pushing to a remote that is not where you usually fetch from.

和:

git add path now equates git add -A path

关于git - 从 git 1.9.5 升级到最新的 2.6 我需要注意什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32869934/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com