Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

GitLine

qingchuanqingchuan91 downloads

Show Git blame (time / author / message) at the end of the current line. 在当前光标所在行的行尾显示该行 Git 归属:提交人、提交时间、提交消息,格式可配置.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates6

GitLine is an Obsidian desktop plugin that shows Git blame information at the end of the current cursor line. Each line displays the committer, the commit time, and the commit message, using a fully configurable format.

preview

简体中文版

Features

  • Line-end blame: the blame information of the current cursor line is rendered as an inline annotation at the end of the line.
  • Configurable format: assemble the display freely with the {date}, {time}, {author}, {message} and {hash} placeholders.
  • Flexible timestamps: choose between relative time (e.g. "3 days ago") and absolute time, accurate to the minute.
  • Uncommitted lines: lines that have not been committed yet are marked as Uncommitted.
  • Status bar: shows the author of the current line (optional).
  • Whitespace handling: git blame -w can be enabled to ignore whitespace-only changes.
  • Caching: an LRU cache avoids repeated git calls; entries are invalidated when a file is saved or the repository state changes.
  • Robustness: git is detected automatically; a friendly hint is shown instead of an error when git is unavailable.

Security

GitLine invokes the locally installed git executable with execFile and an argument array. It never passes input through a shell and never executes user-provided command strings.

Requirements

  • Obsidian desktop (the plugin uses Node.js APIs and is desktop-only).
  • Git installed and available on PATH (git --version must succeed).

Installation

  1. Copy the gitline plugin folder into <your vault>/.obsidian/plugins/gitline/.
  2. In Obsidian, open Settings → Community plugins, and enable GitLine.

Once the plugin is published, it can also be installed directly from the community plugin list.

Usage

Open a note that lives in a Git repository and move the cursor. The blame information appears at the end of the current line.

Settings

Setting Description Default
Enable Master switch for the line-end blame display. On
Display format Template with placeholders{date} {time} {author} {message} {hash}. {author} {time} {message}
Time style Relative (e.g. "3 days ago") or Absolute (accurate to the minute). Absolute
Absolute time format Moment format string. YYYY-MM-DD HH:mm
Uncommitted lines Show a marker on uncommitted lines. On
Ignore whitespace Map togit blame -w. Off
Status bar Show the current line's author in the status bar. On
Cache size Maximum number of files kept in the LRU cache. 100

Development

npm install   # install dependencies
npm run dev   # watch and build main.js
npm run build # type-check and build for production

License

MIT

HealthExcellent
ReviewSatisfactory
About
Display Git blame inline at the end of the current cursor line, showing author, commit time, message and hash for notes tracked in a Git repository. Customize the display format and time style, mark uncommitted lines, and use caching with automatic Git detection to minimize overhead.
GitAnnotationStatus bar
Details
Current version
0.1.5
Last updated
2 weeks ago
Created
2 months ago
Updates
6 releases
Downloads
91
Compatible with
Obsidian 1.0.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
qingchuanqingchuanqingchuan-x
GitHubqingchuan-x
  1. Community
  2. Plugins
  3. Git
  4. GitLine

Related plugins

Plugin Update Tracker

Know when installed plugins have updates and evaluate the risk of upgrading.

Admonition

Admonition block-styled content.

Git

Integrate Git version control with automatic backup and other advanced features.

Fit

Minimalist File gIT (FIT) to sync your files across mobile and desktop devices using GitHub.

HiNote

Add comments to highlighted notes, use AI for thinking, and flashcards for memory.

WebNovel Assistant

An all-in-one writing studio for novel and story writers. Features accurate word count tracking, daily goals, story timeline board, plot foreshadowing manager, chapter corkboard, and character lore gr

Open in Terminal

Open your vault in a new terminal window or launch Claude Code, Codex CLI, or Gemini CLI directly from a terminal.

Custom Note Width

Effortlessly change the line width of each note individually. Provides multiple ways to customize the experience, making it both efficient and user-friendly to adjust line widths.

Day Planner OG

Day planning from a simple task list in a Markdown note (bare bones, preserves the features and behavior of the original plugin).

Colored Text

Color the selected texts.