git
git copied to clipboard
Can i git clone / commit / push with this? Or is this lib for reading, stat
Does this library follows libgit2 or just a simple wrapper for reading git stats, not having actual source on the local device
Same Question here, would need that feature
To answer that question:
the git package has an interface that allows to run any command by using the runCommand method from a GitDir instance.
Therefore, you could clone, commit, push with this package.
GitDir doesn't have a default constructor and the only two static functions exposed are FromExisting() and Init(). How do I clone a new repo?
@GibreelAbdullah it looks like this is currently not supported. But you could just use the Process class from dart:io:
final pr = await Process.run('git', args, workingDirectory: processWorkingDir, runInShell: true);
args would then be something like ['clone', url].
This is also how the git package runs the commands.