I have an issue where i push my commits to remote repository. Basically remote repo gets my commits but the local repo still shows that im ahead of remote branch with x amount of commit.
Note: I checked the logs from git bash. Git fetch solves the problem from git bash but not from JGIT codes. My fetch works tested it many times Already checked similar issues like this
How to solve it?
Commit code:
git.add().addFilepattern(".").call();
git.commit().setMessage( "Commit for sideMerge branch").call();
Push Code:
tmpPush= git.push().setCredentialsProvider( new UsernamePasswordCredentialsProvider("ID","PW"));
tmpPush.setRemote("remote repolink");
tmpPush.call();