centic9 / jgit-cookbook

Provides examples and code snippets for the JGit Java Git implementation
Apache License 2.0
1.76k stars 507 forks source link

The question about commit #73

Closed xuweichuan closed 4 years ago

xuweichuan commented 4 years ago

Hello, is it possible to use jgit to commit local changes to another specified branch without switching to the specified branch?

centic9 commented 4 years ago

not as far as I know of, and please use stackoverflow for questions about jgit usage as specified in the issue-guidelines:

Note: Please use sites such as http://stackoverflow.com for general questions about JGit usage, not issues in this project. Issues should be used for problems with snippets and suggestions of missing snippets. Snippets from good answers on stackoverflow can then be included here, naturally.