Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Get progress of push command in JGit


the PushCommand has a setProgressMonitor() method that will accept your ProgressMonitor implementation There is also a TextProgressMonitor that reports progress to a Writer if you whish to show progress messages e.g. on the console.


From: Albert Battle <battalovalb@xxxxxxxxx>
To: jgit-dev@xxxxxxxxxxx
Sent: Wednesday, March 11, 2015 6:35 PM
Subject: [jgit-dev] Get progress of push command in JGit

I am able to push to the remote repository with the following command
git.push().setCredentialsProvider(new UsernamePasswordCredentialsProvider(user, password)).setRemote("origin").call();
Sometimes it takes a few minutes to push to the repository and I want somehow to keep track of the progress. There's an interface org.eclipse.jgit.lib.ProgressMonitor but no examples of how to use it.

jgit-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top