git_on_dart 0.1.0 copy "git_on_dart: ^0.1.0" to clipboard
git_on_dart: ^0.1.0 copied to clipboard

Pure Dart git implementation optimized for Flutter mobile apps. Provides local and remote git operations (init, commit, push, pull, merge, rebase) with HTTPS/SSH authentication.

git_in_dart #

A pure Dart implementation of Git, optimized for Flutter mobile applications (Android & iOS).

Features #

  • Local Git Operations: init, add, commit, checkout, branch, merge, rebase, status, log, diff
  • Git Protocol Compatible: Works with standard git repositories and formats
  • Mobile Optimized: Memory-efficient streaming, async operations, platform-aware file handling
  • Flutter Ready: Clean async API with progress streams, isolate-based heavy operations
  • Cross-Platform: Supports Android, iOS, Linux, macOS, and Windows

Usage #

import 'package:git_on_dart/git_on_dart.dart';

// Initialize a new repository
final repo = await GitRepository.init('/path/to/repo');

// Add files
await repo.add(['file.txt']);

// Commit changes
final commit = await repo.commit('Initial commit', author: GitAuthor(
  name: 'Your Name',
  email: 'your@email.com',
));

// Create and checkout branch
await repo.createBranch('feature-branch');
await repo.checkout('feature-branch');

// Merge branches
final result = await repo.merge('main');
if (result.hasConflicts) {
  print('Conflicts: ${result.conflicts}');
}

Installation #

Add to your pubspec.yaml:

dependencies:
  git_on_dart: ^0.1.0

Status #

🚧 Under Development - Core functionality is being implemented.

License #

MIT License

1
likes
0
points
94
downloads

Publisher

unverified uploader

Weekly Downloads

Pure Dart git implementation optimized for Flutter mobile apps. Provides local and remote git operations (init, commit, push, pull, merge, rebase) with HTTPS/SSH authentication.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

archive, crypto, path, path_provider

More

Packages that depend on git_on_dart