Tag: ssh

Setting git private repository project on jenkins server

I am trying to set git private repo on jenkins server. I have installed git plugin and also github. when I set repo url in jenkins project ui the error is Failed to connect to repository : Command “git -c core.askpass=true ls-remote -h git@github.com:repo/project.git HEAD” returned status code 128: stdout: stderr: Permission denied (publickey). fatal: […]

Setting Git/SmartGit SSH Client's home folder

I’m wondering if anyone can shed some insight into why SmartGit isn’t behaving when I’m connecting to our source control server through SSH. GitBash behaves fine. Background: I’ve got a source control server set up on the network, running MSYSGit with WinSSH as the SSH server. It hooks into AD to resolve usernames etc, and […]

bad configuration option in git

Yesterday our team member changed two lines in the ssh_config file because it was impossible to get up to go to the bathroom without the ssh tunnel breaking. Now, git can’t pull anything to the machine from our repo. Here is the error we’re getting (git was working fine the day before yesterday): Fetching origin […]

Two-step git import over ssh

Bitbucket has an importer tool for importing repositories from remote locations, but it only supports the git:// protocol. Our existing repositories are on a company controlled machine behind a firewall that I can’t change, and git:// is not available. I need to move the repositories from our company machine to bitbucket, keeping all history and […]

setting up git ssh access error: gitosis need more than 1 value to unpack

When I go to set up git to run with ssh, I get the following error: file “usr/lib/python2.5/site-packages/gitosis-0.2-py2.5.egg/gitosis/init.py”, line 35, in ssh_extract_user _, user = pubkey.rsplit(None, 1) ValueError: need more than 1 value to unpack the command I typed: sudo -H -u git gitosis-init < /home/sean/.ssh/pubkey.pub I am running the ubuntu long release server 8.04

need to use git behind firewall: trying ssh tunneling

I am trying to use ssh port forwarding to defeat corporate firewall: ssh git@GIT_SERVER -L9418:GIT_SERVER:9418 and in another terminal I run git clone git://localhost:repositories/project.git But I get the following error: Initialized empty Git repository in /Users/aboxer/tmp/glucosia/.git/ fatal: Unable to look up localhost (port repositories) (nodename nor servname provided, or not known) Thanks!

Completely replace remote branch with another in github leaving no traces of the old one

I pushed a branch to an empty github repo : MrD@MRSD /c/Dropbox/eclipse_workspaces/javaEE/ted2012 (GitHubSquash) $ git remote add github https://github.com/Utumno/ted2012.git MrD@MRSD /c/Dropbox/eclipse_workspaces/javaEE/ted2012 (GitHubSquash) $ git push -u github GitHubSquash Username for ‘https://github.com’: Utumno Password for ‘https://Utumno@github.com’: //… To https://github.com/Utumno/ted2012.git * [new branch] GitHubSquash -> GitHubSquash Branch GitHubSquash set up to track remote branch GitHubSquash from github. […]

GitLab + Eclipse + SSH – “Auth failed” or “cannot open git-upload-pack”

This week I set up an new GitLab server. It is running. Yesterday I forced him to be reachable via HTTPS for secure communication. In Eclipse I generated an RSA-Key via the preferences. But if I try to import an Git-Project (git@DOMAIN:GROUP/PROJECT.git) then: without password filled in, I got the response: Auth fail: Invalid password […]

Is it possible to switch the user on a git repo?

We have a staging server that we use git to manage very simply: develop locally, git commit/push, and then git pull on the server. I’d love to be able to switch user on the server’s copy so I could run the git pull rather than the person who set up the environment. Any idea if […]

Obtain the latest refspec on a Gerrit Change

How can I obtain the latest refspec on a gerrit change through a single command. I need the output as “refs/changes/11/1234/4”. Is there any git command for the same I do know that ssh commands combined with gerrit query and a bit of scripting can obtain this, but want to know if there is any […]

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