Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7180719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:24:28+00:00 2026-05-28T17:24:28+00:00

I have two issues. I have Ubuntu 10.10 and I have installed git server

  • 0

I have two issues. I have Ubuntu 10.10 and I have installed git server with gitolite
tool. Everything worked quite good. The gl-setup command of gitolite created 2 repositories:
gitolite-admin and testing.

1) QUESTION 1

My default gitolite admin user is called “git” and already created.

First, I had to clone the gitolite-admin repo, make some changes to let’s say conf/gitolite.conf to add some new repo and a new user (I added the root user and I created and private/public key before and also added the public key to keydir folder), then I had to add/commit and push changes back.3

Info: I have my ~git/.ssh/authorized_keys file fine, starting with command= and having only one value – the public key of the git user I created first.

DIDN’T WORK:

git@vs1:~/$ git clone git@<<SERVER_IP>>:gitolite-admin.git
Initialized empty Git repository in /home/git/ga/gitolite-admin/.git/
git@<<SERVER_IP>>'s password:
fatal: 'gitolite-admin.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

WORKED:

touch ~/.ssh/config

with content:

host gitolite
     user git
     hostname <<SERVER_IP>>
     identityfile ~/.ssh/git.pub

git@vs1:~/$ git clone gitolite:gitolite-admin
Initialized empty Git repository in /home/git/ga/gitolite-admin/.git/
Enter passphrase for key '/home/git/.ssh/git.pub':
Enter passphrase for key '/home/git/.ssh/git.pub':
Enter passphrase for key '/home/git/.ssh/git.pub':
git@89.35.160.243's password:
remote: Counting objects: 23, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 23 (delta 4), reused 0 (delta 0)
Receiving objects: 100% (23/23), done.
Resolving deltas: 100% (4/4), done.

Why I didn’t work at all the first variant? All the tutorials say that it should work without any problems. I had to use the second variant with creating that host configuration in ~/.ssh/config file. This is a bit frustrating. The repo path is /home/git/repositories and the ssh is default port 22.

2) QUESTION 2

Using user root on the same server, I created an empty folder in let’s say /var/www/example.com/www. I ran git init, then added a file (.gitignore), ran git add -A and git commit -m “…”.

Then I created the remote path for origin:

git remote add origin git@<<SERVER_IP>>:myrepo.git

I ran git push origin master and this is what I got:

fatal: 'myrepo.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

I tried various things to change, like putting the whole path to the repository (even I didn’t see that nowhere, so it isn’t correct) and I got:

Counting objects: 3, done.
Writing objects: 100% (3/3), 243 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: ENV GL_RC not set
remote: BEGIN failed--compilation aborted at hooks/update line 20.
remote: error: hook declined to update refs/heads/master
To git@<<SERVER_IP>>:/home/git/repositories/myrepo.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git@<<SERVER_IP>>:/home/git/repositories/myrepo.git'

What I doing wrong? This is getting frustrating since for such basic task I experience this unusual difficulties. I have great experience with SVN, these are the first plays with GIT.

Thank you in advance for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:24:29+00:00Added an answer on May 28, 2026 at 5:24 pm

    Note for 1/: That could have worked if the identityfile was a default name (id_rsa.pub and id_rsa). Since it wasn’t the case, a config file was mandatory.

    Note for 2/ you have created a git repo, but did you let gitolite know about it?
    You should declare the new repo in the config file of the gitolite-admin repo.

    If you are pushing through ssh as root, that means that use has its own ~/.ssh/id_rsa(.pub) keys, and those keys were registered for Gitolite.

    Note for repo paths: never use the full local path of a repo for the push/pull address: that would circumvent Gitolite completely.


    A gazillon comments laters, it appears that:

    • all remote addresses should start with git@somehostname:arepo.git: you want your user to execute git commands on somehostname as ‘git‘ (the account in charge of git and gitolite).
      That means the public key of ‘myuser‘ needs to be registered on the somehostname:~git/.ssh/authorized_keys

    • any time an ssh connection doesn’t go your way, you can start by looking those ssh debugging tips.
      For instance: ssh -vvv git:somehostname can go a long way to illustrate what is going on

    • if you want to avoid a config file, then you need to use the standard naming convention for those public/private keys (~myuser/.ssh/id_rsa, and ~myuser/.ssh/id_rsa.pub)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two issues both related to (I believe) my SQL Server setup. I
I have a problem with my connection tunneling. So I'm using two ubuntu server
I have found many people with simliar issues but no soultions...basically I have two
I have inherited a middle tier system with some multi-Threading issues. Two different threads,
I have two issues:- 1. I need to be able to set the value
My code works fine in a way. I have two issues with it though.
I have two issues I'm trying to work though. The first is I'm trying
So I have two issues to solve: Detect a click on an area in
I can add a QPixMapImage to a QGraphicsScene, but then I have two issues.
Firstly, I'm totally javascript inept so please explain throughly. OK, I have two issues

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.