Skip to main content
0 votes
0 answers
39 views

If my remote has commits on it that I would overwrite by pushing, JGit fails silently and does not present an error message. If I do a manual push from my local repo, Git CLI throws an error that I ...
JQueryCurious's user avatar
0 votes
0 answers
48 views

I have a workflow in which specially named branches are used to identify "fixes" for things, and I'm trying to write a tool in JGit to manage them. Within a git tree, a fix branch can be ...
David Beaumont's user avatar
0 votes
0 answers
29 views

Can I use ArchiveCommand to implement the command 'git archive -- remote=origin -- output=archive. zip' on my git server? The client keeps reporting this error 'fatal: protocol error: bad line length ...
user30488983's user avatar
-3 votes
1 answer
54 views

I am using JGit to do some manipulation of a repo. Is there an easy way for me to be sure that a repo is/isn't in a detached head state? The best I've come up with so far is to use Repository....
GeePawHill's user avatar
0 votes
1 answer
436 views

I am trying to clone a git repo locally through the java code that I have. And this is how it looks like: class Scratch { public static void main(String[] args) { String repoName = "https://...
Aravind S's user avatar
  • 505
0 votes
0 answers
147 views

I used JGit library for cloning and pulling repository in my app. Git clone code: Git.cloneRepository() .setURI(remoteURL) .setDirectory(repoDir) ...
Trần Tuấn Anh's user avatar
0 votes
0 answers
39 views

I use jGit and the status() command to list the conflicting files. I want to load the two versions of a file in status CONFLICTING, and solve the conflict by myself. OpenAI suggested the code below. ...
DbSchema's user avatar
  • 383
1 vote
0 answers
53 views

Suppose there is a file that is added and committed to a Git repository with the change reverted: try (Git gitParent = Git.init().setDirectory(parentRepositoryRoot).call()) { final String fooName =...
Vlad's user avatar
  • 354
0 votes
0 answers
39 views

I am trying to clone a git repository into my local using the following code: repo = Git.cloneRepository() .setCloneAllBranches(true) .setBranch(branch) .setCredentialsProvider(new ...
Shivansh Kaldaik's user avatar
0 votes
0 answers
88 views

I have a file , the git blame info of git command git blame a.java like this: just like the blame info of Jetbrains IDEA "Annotate with Git Blame". But when I use jgit "BlameCommand&...
Jiajie Zhuang's user avatar
1 vote
1 answer
247 views

I am trying to create an InMemoryGitRepository from scratch. Ultimately, I would like to try a custom DFSRepository as git backend, but to begin with I was playing around with the default ...
Joyjit's user avatar
  • 141
0 votes
1 answer
104 views

This is a question specific to the JGit api. I would like to replicate in JGit the same behavior of the following Git command: git fetch --prune --prune-tags, which basically removes, from the local ...
JBoy's user avatar
  • 5,797
0 votes
0 answers
29 views

I use jGit to manage repositories, and I have a question related to push(). The issue: not all pushes are visible in the GitHub activity page. In the workflow below, Ben is pushing a change to GitHub ...
DbSchema's user avatar
  • 383
0 votes
1 answer
265 views

I am using Jgit library to provide git functionality in our application. When a git operation like clone is executed for cloning HTTPS repo, the request needs to go through an embedded jetty based ...
Joyjit's user avatar
  • 141
0 votes
1 answer
147 views

I am using eclipse JGit API on my java project to mange remote GitHub repository and so far I can use JGit to commit local changes to remote. But I have these requirements that I will only need to ...
abraham ararsa's user avatar

15 30 50 per page
1
2 3 4 5
64