Skip to content

teamleaderleo/git-inline

Repository files navigation

git-inline

Visualize Git history inline with your web app!

npm version

Installation

npm install git-inline

Usage

// Just track the current file!
<InlineGit />  // Uses config for owner/repo

// Track a specific file!
<InlineGit files="src/components/Header.tsx" />

// Track multiple specific files!
<InlineGit files={[
  'src/components/Header.tsx',
  'src/components/Footer.tsx'
]} />

// Track the entire directory!
<InlineGit files={{ 
  path: 'src/components',
  recursive: true 
}} />

// Track the entire repo!
<InlineGit files="*" />

// Override config settings!
<InlineGit 
  owner="different-owner"
  repo="different-repo"
  files="src/components/Header.tsx"
/>

Features

  • Fetch Git commit history for specific files
  • More features coming soon!

Contributing

Pull requests are welcome! For major changes, please open an issue first.

About

Visualize Git history inline with your web app!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published