JGit PUSH only Single File [message #1787560] |
Tue, 29 May 2018 01:21  |
Eclipse User |
|
|
|
I need to write one Java program which allow me to PUSH/Check-in one single file to the given GIT repository.
For this I am using JGIT libraries.
But by using JGIT I found one issue that it is always tried to clone entire GIT repository to my local file system.
If the GIT repository having huge data somewhere around 2GB then it will create such big repo in my local file system.
This will also create lots of data transfer.
I just wanted to modify and check-in only single file at specific folder location of GIT repository.
I don't want to clone entire repo in my local file system for this.
If I use no checkout option while cloning and then commit and PUSH single file to remote repo then it will PUSH entire working tree to GIT repo and all other existing folders and files get removed from remote repo.
Please let me know if there is any solution by using JGIT library.
|
|
|
|
Powered by
FUDForum. Page generated in 0.07894 seconds