Tag: java

Cygwin “git clone” gives “remote end hung up unexpectedly” against Ubuntu 10.04.1

I am in the process of figuring out how to get Eclipse (Windows 7) working against our freshly git-migrated CVS repository which I have put in gitosis on an Ubuntu 10.04.1 LTS host. All software is installed with apt-get (git, gitosis, etc.). Eclipse with egit hangs when trying to check out, so I am playing […]

Ivy Custom Resolvers for Git or TFS

I’m fairly new to Ivy, so perhaps there’s a straight forward way that I’m not able to find in the documentation or what I’m looking for is not possible, but here goes. I want to be able to specify dependencies where the source code is located on local and/or remote servers which use different protocols. […]

Using Keys with JGit to Access a Git Repository Securely

I’m using JGit to access a remote Git repo, and I need to use SSH for it. JGit uses JSch to provide secure access. However, I’m not sure how to set the key file and the knows hosts file for JGit. What I have tried is as follows. Created a custom configuration of the SshSessionFactory, […]

Injecting current git commit id into Java webapp

We have a git repository which contains source for a few related Java WARs and JARs. It would be nice if the Java code could somehow: System.err.println(“I was built from git commit ” + commitID); (Obviously real code might be putting this into an HTTP header, logging it on startup, or whatever, that’s not important […]

USERAUTH fail using JGit to access git repo securely for PullCommand()

I am trying to do a git pull using JGit’s API with the following code public class gitHubTest { JSch jsch = new JSch(); // Defining the private key file location explicitly String userHome = System.getProperty(“user.home”); String privateKey = userHome + “/.ssh/id_rsa”; String knownHostsFile = userHome + “/.ssh/known_hosts”; Repository localRepo = new FileRepository(“/LocalPath/.git”); public gitHubTest() […]

How Do I Upload Eclipse Projects to GitHub?

I have code in Eclipse that I’d like to upload to GitHub but so far I can’t figure out how. It says “create a repository” but that looks more like a folder that holds your projects and I’m not sure how to upload my code to it. Apologies for the seemingly dumb question. Also, how […]

Should I store git repository in Home or Eclipse Workspace?

I’m just moving from svn to git, and am keen to lay some good foundations. By default Eclipse wants to store my local clone repository in ~/git. I’m more comfortable keeping all data for a task in the same workspace – so I’m inclined to keep it in my workspace. Are there any significant pros/cons […]

How do you merge in GIT on Windows?

I tried to use GIT however for me the biggest problem with it is that there is no tool for merge’ing. At least the msysgit does not give me anything. How can I merge in GIT? Are there any great tools for it or do I have to use WinMerge or application like that? I […]

Is Perforce worth it?

A colleague of mine has become excited about the possibilities with PerForce (we basically need an abillity to logistically group patches and changes, and having the SCM support this natively would be very nice). We currently use CVS and are open to all posibillities. We are only few developers who use plain Eclipse and run […]

NBGit to remote host with ssh

I´m trying to get that working: clone a git project from an ssh server with NBGit. I get NBGit installed, works well local, but when given the connection parameters I´m not sure what is the right URL. Or maybe it is not supported at the moment? NBGit 0.4 for NB 6.9.1 on Win7

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