差异 GitLab 维基
Diff GitLab Wiki
在 GitLab Wiki 部分,可以查看更改保存时间的历史记录。但是,当您单击提交 link 时,它将显示该保存时存在的整个文件。
有谁知道一种方法来区分提交以仅获取两个提交之间的差异?
这类似于它在合并请求部分中的发生方式,它区分源和目标分支并显示它们之间的差异。
我不确定在 GUI 中查看差异(谷歌搜索会导致一堆未解决的问题),但您总是可以克隆 wiki(它存储为单独的 git 存储库)和本地差异。
Since wikis are based on Git repositories, you can clone them locally and edit them like you would do with every other Git repository.
On the right sidebar, click on Clone repository and follow the on-screen instructions
-- https://docs.gitlab.com/ce/user/project/wiki/#adding-and-editing-wiki-pages-locally
在我使用的 Gitlab 版本中,您可以在 https://yourdomain/<group>/<project>/-/wikis/pages
上找到 "Clone repository" 按钮,即在列出所有 wiki 页面时。 wiki git 存储库位于 <group>/<project>.wiki.git
此功能自 Gitlab 13.2 起可用。
Similar to versioned diff file views, you can see the changes made in a given Wiki page version:
- Navigate to the Wiki page you’re interested in.
- Click on Page history to see all page versions.
- Click on the commit message in the Changes column for the version you’re interested in:
来源: https://docs.gitlab.com/ee/user/project/wiki/#viewing-the-changes-between-page-versions
在 GitLab Wiki 部分,可以查看更改保存时间的历史记录。但是,当您单击提交 link 时,它将显示该保存时存在的整个文件。 有谁知道一种方法来区分提交以仅获取两个提交之间的差异?
这类似于它在合并请求部分中的发生方式,它区分源和目标分支并显示它们之间的差异。
我不确定在 GUI 中查看差异(谷歌搜索会导致一堆未解决的问题),但您总是可以克隆 wiki(它存储为单独的 git 存储库)和本地差异。
Since wikis are based on Git repositories, you can clone them locally and edit them like you would do with every other Git repository.
On the right sidebar, click on Clone repository and follow the on-screen instructions
-- https://docs.gitlab.com/ce/user/project/wiki/#adding-and-editing-wiki-pages-locally
在我使用的 Gitlab 版本中,您可以在 https://yourdomain/<group>/<project>/-/wikis/pages
上找到 "Clone repository" 按钮,即在列出所有 wiki 页面时。 wiki git 存储库位于 <group>/<project>.wiki.git
此功能自 Gitlab 13.2 起可用。
Similar to versioned diff file views, you can see the changes made in a given Wiki page version:
- Navigate to the Wiki page you’re interested in.
- Click on Page history to see all page versions.
- Click on the commit message in the Changes column for the version you’re interested in:
来源: https://docs.gitlab.com/ee/user/project/wiki/#viewing-the-changes-between-page-versions