如何使用 Olive 提交并推送一个已更改的文件?

发布于 2024-10-09 22:38:05 字数 329 浏览 0 评论 0原文

在 Linux 上使用 Olive 我更改了本地系统上的许多文件。通常我会执行 Branch>Commit ,然后执行 Branch>Push ,但在这种情况下,我只想将其中一项更改放在 lp:stevedore 此时。如何仅提交并推送已更改的文件之一而不是所有其他更改?

Using Olive on Linux I have changed a number of files on my local system. Normally I would do Branch>Commit followed by Branch>Push, but in this case I only want to place one of the changes on lp:stevedore at this time. How can I commit and push just one of the changed files but not all of the other changes?

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

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

发布评论

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

评论(1

萌辣 2024-10-16 22:38:05

在命令行上,您应该能够执行以下操作

> cd <path to working tree>
> bzr commit -m "<commit message>" <relative path to file>

,以便仅提交对指定文件的更改。

因此,假设您的工作树是 ~/code,并且 bzr status 看起来像

modified:
  README
  dir/file0.py
  dir/file1.py

您可以 bzr commit -m "File0changes" dir/file0.py< /code> 仅提交对 file1.py 的更改。

FWIW,bzr-qt 提供了 qcommit,它显示了要提交的所有文件,每个文件都有一个复选框,这样您就可以轻松选择要提交的文件子集。也许 bzr-gtk 提供了类似的东西?

On the command line, you should be able to do

> cd <path to working tree>
> bzr commit -m "<commit message>" <relative path to file>

in order to commit only the changes to the file specified.

So, supposing your working tree is ~/code, and bzr status looks something like

modified:
  README
  dir/file0.py
  dir/file1.py

you can bzr commit -m "File0 changes" dir/file0.py to commit only the changes to file1.py.

FWIW, bzr-qt provides qcommit, which shows all files to be committed with a checkbox for each so you can easily choose a subset of files to commit. Perhaps bzr-gtk provides something similar?

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