Title: Git Snippets
Author: Luis A. Ochoa
Published: <strong>2019 年 8 月 29 日</strong>
Last modified: 2021 年 9 月 25 日

---

搜索插件

![](https://ps.w.org/git-snippets/assets/banner-772x250.png?rev=2147446)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/git-snippets/assets/icon-256x256.png?rev=2147446)

# Git Snippets

 作者：[Luis A. Ochoa](https://profiles.wordpress.org/aochoae/)

[下载](https://downloads.wordpress.org/plugin/git-snippets.2.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/git-snippets/#description)
 * [评价](https://cn.wordpress.org/plugins/git-snippets/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/git-snippets/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/git-snippets/#developers)

 [支持](https://wordpress.org/support/plugin/git-snippets/)

## 描述

With Git Snippets you can share code and text fragments with other users from your
website.

To embed a project snippet, first make sure that:

 * The snippet is public
 * In **Project > Settings > Visibility, project features, permissions**, the snippets
   permissions are set to **Everyone with access**

Use `[gitlab]` shortcode by using the ID or URL of the snippet in your posts and
pages.

 * `[gitlab id="2180458"]`
 * `[gitlab url="https://gitlab.com/aochoae/git-snippets/-/snippets/2180458"]`

## 安装

#### Minimum Requirements

 * WordPress 4.9 or greater
 * PHP 7.1 or greater

#### Manual installation

 1. Navigate to **Plugins > Add New**.
 2. Click the Upload Plugin button at the top of the screen.
 3. Select the zip file from your local filesystem.
 4. Click the **Install Now** button.
 5. Click the Activate Plugin button at the bottom of the page.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Git Snippets」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Luis A. Ochoa ](https://profiles.wordpress.org/aochoae/)

[帮助将「Git Snippets」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/git-snippets)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/git-snippets/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/git-snippets/)，或通过[RSS](https://plugins.trac.wordpress.org/log/git-snippets/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/git-snippets/)。

## 更新日志

#### 2.0.0 (September 25, 2021)

 * GitLab 14.1 (Tested)
 * Code cleanup

#### 1.0.0 (August 28, 2019)

 * Initial release.

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**5 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **5.8.13**
 *  PHP 版本 ** 7.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/git-snippets/)
 * 标签
 * [git](https://cn.wordpress.org/plugins/tags/git/)[gitlab](https://cn.wordpress.org/plugins/tags/gitlab/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/git-snippets/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/git-snippets/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/git-snippets/reviews/)

## 贡献者

 *   [ Luis A. Ochoa ](https://profiles.wordpress.org/aochoae/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/git-snippets/)