【问题标题】:SourceTree : download source files for a particular commitSourceTree:下载特定提交的源文件
【发布时间】:2022-01-22 18:27:44
【问题描述】:

我正在使用 SourceTree 版本 4.1.3。 我想下载在特定提交中更改的源文件。 从历史记录中选择提交并选择存档选项后,它会下载分支的完整源代码,直到所选提交。

使用 SourceTree 的最佳方法是什么?

【问题讨论】:

  • 我认为 bitbucket/sourcetree 已经不可能了

标签: git version-control bitbucket atlassian-sourcetree


【解决方案1】:

试试git cherry-pick

https://git-scm.com/docs/git-cherry-pick

按照以下步骤操作:

  1. 确保您位于要将提交应用到的分支上:

git switch master

  1. 执行以下操作:

git cherry-pick [commit-hash]

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-01-11
    • 1970-01-01
    • 2015-08-03
    • 1970-01-01
    • 1970-01-01
    • 2017-07-20
    • 2017-06-07
    相关资源
    最近更新 更多