Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » jgit(how to push the java project into github using jgit)
jgit [message #1829271] Tue, 30 June 2020 06:18 Go to next message
Priyanka Negi is currently offline Priyanka NegiFriend
Messages: 1
Registered: June 2020
Junior Member
I'm trying to build a Java application that allows users to push their project to github by creating a new repository. I was able to do this from the command-line , using the following commands:

git init
<create some files>
git add .
git commit
git remote add <remote repository name> <remote repository URI>
git push -u <remote repository name> master
This allowed me to create, add and commit content to my local repository and push contents to the remote repository. I am now trying to do the same thing in my Java code, using JGit. Also i need to create a new repository in github.
Re: jgit [message #1829280 is a reply to message #1829271] Tue, 30 June 2020 12:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Did you read their documentation?

https://www.eclipse.org/jgit/documentation/


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:PDE with Maven
Next Topic:How to remove Donate tab?
Goto Forum:
  


Current Time: Fri Apr 19 16:27:34 GMT 2024

Powered by FUDForum. Page generated in 0.02998 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top