bzr checkout 与 bzr get

发布于 2024-08-17 02:51:49 字数 410 浏览 3 评论 0原文

之间有什么区别

bzr checkout ./MyProject MyProject.dev
# later followed by a
cd MyProject.dev
bzr pull ../MyProject

我想知道和

bzr get ./MyProject MyProject.dev
# later followed by
cd MyProject.dev
bzr pull

据我所知,唯一的区别是:

  1. bzr get 设置拉取位置。
  2. bzr checkout 未设置拉取 位置,所以必须指定 第一次拉的时候。

还有其他区别吗?

I wonder what the difference is between

bzr checkout ./MyProject MyProject.dev
# later followed by a
cd MyProject.dev
bzr pull ../MyProject

and

bzr get ./MyProject MyProject.dev
# later followed by
cd MyProject.dev
bzr pull

As far I can tell the only difference is:

  1. bzr get sets the pull location.
  2. bzr checkout doesn't set the pull
    location, so it must be specified
    the first time you pull.

Are there other differences?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

痴情换悲伤 2024-08-24 02:51:49

对于 bzr checkout,您不应使用 bzr pull,而应使用 bzr update

bzr getbzrbranch 的别名,大致相当于 git clone

In the case of bzr checkout you should not use bzr pull, but should use bzr update instead.

bzr get is alias of bzr branch which is roughly equivalent of git clone.

め七分饶幸 2024-08-24 02:51:49

bzr get 创建分支,而 bzr checkout 创建结帐。通过签出,您提交给 MyProject.dev 的任何修订也将提交给 MyProject

有关更多详细信息,请参阅结账教程

bzr get creates a branch, whereas bzr checkout creates a checkout. With a checkout, any revisions you commit to MyProject.dev will also be committed to MyProject.

For more detail, see the checkout tutorial.

静待花开 2024-08-24 02:51:49

这是 Bazaar 的一项很酷的功能,但没有得到足够的关注:人们能够以让自己舒服的方式工作,即使在同一个共享存储库上也是如此。

有 git 或其他 DVCS 爱好者吗?美好的。让他们使用 bzr 分支。

是否有一些老派的 svn 人员无法理解所有的分支和合并? “等等...我必须创建一个分支,进行提交,然后合并我的分支,然后推送我的分支?太愚蠢了,我只想提交!”美好的。让他们使用 bzr checkout 进行操作。

尽管 git 更加流行且速度更快,但这种灵活性正是 Bazaar 吸引我的地方。

This is one of the way cool features of Bazaar that doesn't get enough press: the ability for people to work the way that makes them comfortable, even on the same shared repository.

Have some git or other DVCS devotees? Fine. Have them use bzr branch.

Have some old-school svn guys who just can't wrap their heads around all the branching and merging? "Wait...I have to create a branch, do commits, then merge my branch, then push my branch? How stupid, I just want to commit!" Fine. Have them work with bzr checkout.

This type of flexibility is what draws me to Bazaar, despite the fact that git is wildly more popular and faster.

丘比特射中我 2024-08-24 02:51:49

基本上,您可以选择不绑定到从中获取代码的分支:如果您想要独立副本,请使用 bzr get,如果您想自动绑定到原始分支:使用 bzr 结帐

如果您稍后改变主意并希望它的行为更像 SVN,您可以执行 bzr 绑定,您所做的任何提交都将自动提交到父分支。

Basically you have the option of not being tied to the branch you got the code from: if you want a standalone copy use bzr get, if you want to be automatically bound to the original branch: use bzr checkout.

If you change your mind later and want it to behave more like SVN, you can do a bzr bind and any commits you make will automatically be committed to the parent branch.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文