저는 며칠 동안이 주제를 검색해 왔으며 해결책을 찾지 못했습니다. 나는이 주제도 살펴 봤다. StackOverflow How to push JGitJGit 푸시가 파일을 업데이트하지 않습니다.
문제는 내가 아주 기본적인 기능만을 가진 github이어야하는 프로그램을하고 있지만, 푸시 커밋 메시지가 잘 작동하지만 변경하면 원격 저장소에서 업데이트되지 않는 일부 파일의 내용.
나는이 커밋 사용 :
Repository localRepo = new FileRepository(repository + "\\.git");
Git git = new Git(localRepo);
git.commit().setCommitter(txtCommiter.getText(),"").setMessage(txtCommit.getText()).call();
을 그리고 밀어 위해 이것을 사용
Repository localRepo = new FileRepository(this.repository + "\\.git");
Git git = new Git(localRepo);
PushCommand push = git.push();
UsernamePasswordCredentialsProvider user = new UsernamePasswordCredentialsProvider(this.userName, this.pwd);
push.setCredentialsProvider(user);
push.setRemote(this.remote);
push.call();
사람은 내이 도움을 줄 수?
가 robinst 감사 문제였다 커밋에 setAll() 메서드가 없습니다. – Taka