gpt4 book ai didi

version-control - `bzr clone` 、 `bzr branch` 和 `bzr checkout` 之间有区别吗?

转载 作者:行者123 更新时间:2023-12-04 03:09:58 24 4
gpt4 key购买 nike

显然 bzr clone , bzr branchbzr checkout当给定 URL 作为参数并在非 bzr 目录中执行时,所有操作都执行相同的操作。

以后的 Bazaar 工作流程有什么不同吗?即bzr commit , bzr update和 friend 。

最佳答案

分支和克隆是一样的,但是分支和 checkout 是不是 相同。

$ bzr 帮助分支
...
别名:获取、克隆
另请参阅:结帐

查看 Checkout Tutorial ,您将看到结帐本质上将您执行的每个操作直接绑定(bind)到分支。所以你所做的任何事情本质上都是push当你这样做时——显然这是一个巨大的工作流程差异。

Difference between a Branch and a Checkout

Let's start by saying there is nothing you can do with a Checkout that you can't do with plain Branches. A Checkout just enables different defaults and workflow helpers.

What does Checkout do

With a Checkout, whenever you create new entries in a local Branch, it also creates them in a remote Branch. This corresponds to commands like bzr
commit
and bzr pull. If you attempt to commit a new changes, and the remote Branch has a different state than the local one, it will prevent you, and let you know that you are out of date. You can use bzr update to apply the remote changes locally.

关于version-control - `bzr clone` 、 `bzr branch` 和 `bzr checkout` 之间有区别吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2980999/

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