You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. # Java Git
  2. An implementation of the Git version control system in pure Java.
  3. This project is licensed under the __EDL__ (Eclipse Distribution
  4. License).
  5. JGit can be imported straight into Eclipse and built and tested from
  6. there. It can be built from the command line using
  7. [Maven](https://maven.apache.org/) or [Bazel](https://bazel.build/).
  8. The CI builds use Maven and run on [Jenkins](https://ci.eclipse.org/jgit/).
  9. - __org.eclipse.jgit__
  10. A pure Java library capable of being run standalone, with no
  11. additional support libraries. It provides classes to read and
  12. write a Git repository and operate on a working directory.
  13. All portions of JGit are covered by the EDL. Absolutely no GPL,
  14. LGPL or EPL contributions are accepted within this package.
  15. - __org.eclipse.jgit.ant__
  16. Ant tasks based on JGit.
  17. - __org.eclipse.jgit.archive__
  18. Support for exporting to various archive formats (zip etc).
  19. - __org.eclipse.jgit.http.apache__
  20. [Apache httpclient](https://hc.apache.org/httpcomponents-client-ga/) support.
  21. - __org.eclipse.jgit.http.server__
  22. Server for the smart and dumb
  23. [Git HTTP protocol](https://github.com/git/git/blob/master/Documentation/technical/http-protocol.txt).
  24. - __org.eclipse.jgit.lfs__
  25. Support for [LFS](https://git-lfs.github.com/) (Large File Storage).
  26. - __org.eclipse.jgit.lfs.server__
  27. Basic LFS server support.
  28. - __org.eclipse.jgit.packaging__
  29. Production of Eclipse features and p2 repository for JGit. See the JGit
  30. Wiki on why and how to use this module.
  31. - __org.eclipse.jgit.pgm__
  32. Command-line interface Git commands implemented using JGit
  33. ("pgm" stands for program).
  34. - __org.eclipse.jgit.ssh.apache__
  35. Client support for the ssh protocol based on
  36. [Apache Mina sshd](https://mina.apache.org/sshd-project/).
  37. - __org.eclipse.jgit.ui__
  38. Simple UI for displaying git log.
  39. ## Tests
  40. - __org.eclipse.jgit.junit__, __org.eclipse.jgit.junit.http__,
  41. __org.eclipse.jgit.junit.ssh__: Helpers for unit testing
  42. - __org.eclipse.jgit.ant.test__: Unit tests for org.eclipse.jgit.ant
  43. - __org.eclipse.jgit.http.test__: Unit tests for org.eclipse.jgit.http.server
  44. - __org.eclipse.jgit.lfs.server.test__: Unit tests for org.eclipse.jgit.lfs.server
  45. - __org.eclipse.jgit.lfs.test__: Unit tests for org.eclipse.jgit.lfs
  46. - __org.eclipse.jgit.pgm.test__: Unit tests for org.eclipse.jgit.pgm
  47. - __org.eclipse.jgit.ssh.apache.test__: Unit tests for org.eclipse.jgit.ssh.apache
  48. - __org.eclipse.jgit.test__: Unit tests for org.eclipse.jgit
  49. ## Warnings/Caveats
  50. - Native symbolic links are supported, provided the file system supports
  51. them. For Windows you must use a non-administrator account and have the SeCreateSymbolicLinkPrivilege.
  52. - Only the timestamp of the index is used by JGit if the index is
  53. dirty.
  54. - JGit requires at least a Java 8 JDK.
  55. - CRLF conversion is performed depending on the `core.autocrlf` setting,
  56. however Git for Windows by default stores that setting during
  57. installation in the "system wide" configuration file. If Git is not
  58. installed, use the global or repository configuration for the
  59. core.autocrlf setting.
  60. - The system wide configuration file is located relative to where C
  61. Git is installed. Make sure Git can be found via the PATH
  62. environment variable. When installing Git for Windows check the "Run
  63. Git from the Windows Command Prompt" option. There are other options
  64. like Eclipse settings that can be used for pointing out where C Git
  65. is installed. Modifying PATH is the recommended option if C Git is
  66. installed.
  67. - We try to use the same notation of `$HOME` as C Git does. On Windows
  68. this is often not the same value as the `user.home` system property.
  69. ## Features
  70. - __org.eclipse.jgit__
  71. - Read loose and packed commits, trees, blobs, including
  72. deltafied objects.
  73. - Read objects from shared repositories
  74. - Write loose commits, trees, blobs.
  75. - Write blobs from local files or Java InputStreams.
  76. - Read blobs as Java InputStreams.
  77. - Copy trees to local directory, or local directory to a tree.
  78. - Lazily loads objects as necessary.
  79. - Read and write .git/config files.
  80. - Create a new repository.
  81. - Read and write refs, including walking through symrefs.
  82. - Read, update and write the Git index.
  83. - Checkout in dirty working directory if trivial.
  84. - Walk the history from a given set of commits looking for commits
  85. introducing changes in files under a specified path.
  86. - Object transport
  87. Fetch via ssh, git, http, Amazon S3 and bundles.
  88. Push via ssh, git and Amazon S3. JGit does not yet deltify
  89. the pushed packs so they may be a lot larger than C Git packs.
  90. - Garbage collection
  91. - Merge
  92. - Rebase
  93. - And much more
  94. - __org.eclipse.jgit.pgm__
  95. - Assorted set of command line utilities. Mostly for ad-hoc testing of jgit
  96. log, glog, fetch etc.
  97. - __org.eclipse.jgit.ant__
  98. - Ant tasks
  99. - __org.eclipse.jgit.archive__
  100. - Support for Zip/Tar and other formats
  101. - __org.eclipse.http__
  102. - HTTP client and server support
  103. ## Missing Features
  104. There are some missing features:
  105. - verifying signed commits
  106. - signing tags
  107. - signing push
  108. ## Support
  109. Post questions, comments or discussions to the jgit-dev@eclipse.org mailing list.
  110. You need to be [subscribed](https://dev.eclipse.org/mailman/listinfo/jgit-dev)
  111. to post. File bugs and enhancement requests in
  112. [Bugzilla](https://wiki.eclipse.org/EGit/Contributor_Guide#Filing_Bugs).
  113. ## Contributing
  114. See the [EGit Contributor Guide](http://wiki.eclipse.org/EGit/Contributor_Guide).
  115. ## About Git
  116. More information about Git, its repository format, and the canonical
  117. C based implementation can be obtained from the
  118. [Git website](http://git-scm.com/).