Tag: java

Git repository clone failed.missing CR

Hi anybody can pls suggest any solution over this.i am trying to clone git repository but everytime i am getting the above message.this is the log which i am getting. org.eclipse.jgit.api.errors.TransportException: missing CR at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:139) at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125) at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:156) at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.executeCloneOperation(AbstractGitCloneWizard.java:433) at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.access$2(AbstractGitCloneWizard.java:426) at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard$5.run(AbstractGitCloneWizard.java:387) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) Caused by: org.eclipse.jgit.errors.TransportException: missing CR at […]

Git : 'Binary Files Differ.' How to solve this issue in gitHub?

I have been facing this issue since yesterday. I have made some changes in some of the files (.js and .java files). Now when I try to commit these changes using UI tool of Git for windows(GitHub), I get this message ‘Binary Files Differ.’. I have been working with these files successfully until now. I […]

A new tag with <tag> gets added in my pom after doing a release on git server

I have a maven-based java project which I released on Bitbucket git server recently using mvn:release perform command and it was successful. However, after the release was done my pom.xml got modified automatically with the code snippet <tag>HEAD</tag> in the tag which kind of surprised me because when doing a release on subversion in my […]

Issue while trying to open a Maven project via Git in Eclipse Luna

I have a maven project in Github and I want to work with that in Eclipse. In eclipse, there is an option for File>New>Other>Maven>Check out Maven Projects from SCM. But the dropdown select option near SCM URL is inactive. On clicking “m2e Marketplace”, I cannot find git in the list. Though I did find egit, […]

How do I push a play! framework java application to a Dokku in Digital Ocean droplet?

When I try to push a get an error: java.lang.UnsupportedClassVersionError: org/webjars/WebJarExtractor$Cache : Unsupported major.minor version 51.0 I realize the problem happens because when I execute the “push” action form Git, Dokku installs the OpenJdk 1.6, but I don’t know how to solve this problem (I already installed the Oracle Jdk 8 on my digital ocean […]

EGit won't add lib folder to vcs

I have a lib folder in my project, I’ve added it to my build path it even shows up in my .classpath but when I tried to commit it isn’t committed. I’ve tried adding it to GIT via eclipse but it won’t work. I havev tried adding it with the git gui but that says […]

Git: Unable to clean working copy after refactoring file names

I somehow cause git to get all confused after renaming a directory in a Java project. There are now a whole bunch of phantom files sitting in my working copy for the old file name that I can’t seem to remove. An example of one these changes is: Example Diff: NumberUtils.java -package com.RedactedCompanyName.Helpers; +package com.RedactedCompanyName.helpers; […]

Travis CI – android build failed. No connected devices error

Trying to get started with Travis CI for my Android projects but Travis still failing while build my android project. Reason: :app:connectedDebugAndroidTest FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:connectedDebugAndroidTest’. > com.android.builder.testing.api.DeviceException: No connected devices! * Try: Run with –stacktrace option to get the stack trace. Run […]

cross platform git: possible strategies to handle platform specific files

Using eclipse and (E)git for developing a java cross platform application (windows and linux) I wonder what is the best way of handling files that contain platform-specific elements. In for example .classpath the paths of the libraries differ and probably there will be more specific changes as well. When handling specific resources I presume that […]

JGit with ssh key in non-default location

I am trying to include calls to a git repo (fetching from remote and committing changes) into my Java program using JGit. I have followed the steps from http://www.codeaffine.com/2014/12/09/jgit-authentication/, but Eclipse gives me some errors. My code for the pull command (currently with the clone command as this is example code from the linked article): […]

Git Baby is a git and github fan, let's start git clone.