Title: Display Git Status
Author: WP Git Updater
Published: <strong>2020 年 12 月 18 日</strong>
Last modified: 2020 年 12 月 22 日

---

搜索插件

![](https://ps.w.org/display-git-status/assets/banner-772x250.jpg?rev=2442622)

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

![](https://ps.w.org/display-git-status/assets/icon-256x256.jpg?rev=2442622)

# Display Git Status

 作者：[WP Git Updater](https://profiles.wordpress.org/wpgitupdater/)

[下载](https://downloads.wordpress.org/plugin/display-git-status.1.0.1.zip)

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

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

## 描述

Display Git Status is a pretty simple plugin, all it needs is access to the `shell_exec`
function and to be pointed at a git repository.

The plugin will not perform any state altering operations, it accesses the repository
using read only methods to fetch information like branch name, last commit and status.

When the git repository is located (defaulting to `wp-content`, or overwritten via
a setting) the plugin will add a new admin bar item with the git icon and the current
branch name.

When your site has untracked changes the menu items background will turn red.

This is ideal as it gives you a small marker directly in the admin area that some
changes have been made which you probably need to look into.

Additionally when accessing the plugins admin page you can see the result of the`
git status` command, and the last commit applied to your site.

## 屏幕截图

 * [[
 * Display Git Status settings page, here you can set the repository location, additionally
   the git status and last commit information.
 * [[
 * When your site and repository and are in sync you can see the branch name in 
   the admin bar.
 * [[
 * And when your site and repository are divergent the admin bar items background
   changes to red, alerting you of a problem.

## 常见问题

### What repositories can it track?

The plugin can read from any git repository, it performs on basic git commands.

All you need to do is ensure your web user can access the git repository, and that
the `shell_exec` function is enabled.

Additionally it doesnt have to the root or wp-content folder. The plugin can read
and display information for any repository it has access to on the filesystem.

### Does it commit changes?

No this plugin only reads your git repositories status. There are no plans to make
this anything more.

### What permissions are required?

Anyone with the `manage_options` permissions can see/edit the git status admin page.

## 评价

![](https://secure.gravatar.com/avatar/78b2e5f2497fc6bab5ff84c1dc4520c4f7108a3e70b6c159c323d4513e7af620?
s=60&d=retro&r=g)

### 󠀁[Finally! Really glad someone has done this properly.](https://wordpress.org/support/topic/finally-really-glad-someone-has-done-this-properly/)󠁿

 [Richard Fisher](https://profiles.wordpress.org/richie8410/) 2020 年 12 月 19 日

I’ve been looking for a plugin to do just this for ages! I’m so glad someone’s finally
built one that works. Great job guys.

![](https://secure.gravatar.com/avatar/0ed60d84fb1b231af96a53f76cdbda0da087ec45bdd1f745ef99b3dfd048a919?
s=60&d=retro&r=g)

### 󠀁[Great plugin for a great service](https://wordpress.org/support/topic/great-plugin-for-a-great-service-2/)󠁿

 [pauleaton](https://profiles.wordpress.org/pauleaton/) 2020 年 12 月 18 日

If you’re looking to automate your source controlled WordPress websites then this
plugin and service is for you.

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/display-git-status/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ WP Git Updater ](https://profiles.wordpress.org/wpgitupdater/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.1

 * Fix Command and XXS inject, props to @xrzhev

#### 1.0.0

 * Initial Release

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**5 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.6.17**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/display-git-status/)
 * 标签
 * [git](https://cn.wordpress.org/plugins/tags/git/)
 *  [高级视图](https://cn.wordpress.org/plugins/display-git-status/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/display-git-status/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/display-git-status/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/display-git-status/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/display-git-status/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/display-git-status/reviews/?filter=1)

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

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

## 贡献者

 *   [ WP Git Updater ](https://profiles.wordpress.org/wpgitupdater/)

## 支持

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

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