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

  • Home
  • SEARCH
  • 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 6539467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:51:45+00:00 2026-05-25T10:51:45+00:00

I have just setup a git repository in my 1and1 shared hosting. 1and1 offers

  • 0

I have just setup a git repository in my 1and1 shared hosting. 1and1 offers git as part of the Linux business package and I decided to use it instead of installing my own git.

When I do dir .git I can see the information inside the repository:

-rw-r--r--   1 foo ftpusers      23 Sep  6 19:41 HEAD
drwxr-xr-x   2 foo ftpusers       6 Sep  6 19:41 branches
-rw-r--r--   1 foo ftpusers      92 Sep  6 20:42 config
-rw-r--r--   1 foo ftpusers      73 Sep  6 19:41 description
drwxr-xr-x   2 foo ftpusers    4096 Sep  6 19:41 hooks
-rw-r--r--   1 foo ftpusers 1038768 Sep  6 19:41 index
drwxr-xr-x   2 foo ftpusers      20 Sep  6 19:41 info
drwxr-xr-x 260 foo ftpusers    8192 Sep  6 19:41 objects
drwxr-xr-x   4 foo ftpusers      29 Sep  6 19:41 refs

My repository is located at /project (full path at 1and1 is /homepages/foo/bar/htdocs/project)

When I try to access it using Eclipse EGit it says that the repository appears to be empty. See below what I have attempted so far:

Protocol: SSH
Port: 22
Host: example.com
Repository path: project

Error Message:
Cannot list available branches.
Reason: ssh://<username>@example.com:22/project: fatal '/project'
does not appear to be a git repository.

Then I tried changing the repository path:

Repository path: project/.git

Same error

Then I decided to try with the full path in my server:

Repository path: /homepages/foo/bar/htdocs/project/.git

New error: Source Git Repository is empty

So it seems that it finds the git repository. However it is showing as empty.

By the way, see below the commands I used to create the git repository in my shared 1and1 account:

from my account root:

mkdir project
cd project
cp -r ../example/* .
git init
git add .

Any help appreciated. Thanks.

  • 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-25T10:51:46+00:00Added an answer on May 25, 2026 at 10:51 am

    What is the result of a git log from the command line in the repository? The files you see are created with git init and do not mean something has actually been committed. It appears that you have staged files but not committed them. It’s a fairly common mistake since most other Version Control Systems don’t have an analogous step. Once you start using it to build patches (using git add -p for example) it’s invaluable.

    Some resources for getting started with git:

    progit is an excellent book that is freely available online. It’s written by one of the founders of github.

    The git community book is another online book on git. There is a lot of overlap between it and progit but it goes more in depth with certain things (such as its description of treeishes).

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

Sidebar

Related Questions

I have gitosis setup and working wonderfully using ssh. git@domain.com:repository.git works just as expected.
I currently have a git setup where git is a user on my linux
I just setup an git repository using gitosis. What I can't figure out is
HELP! I just setup a virtual host for two sites that have a lot
I am a complete Noob when it comes to GIT. I have been just
I have a webserver setup using the standard linux, apache, mysql, php config and
I have a GIT repository that I manage for my office. Because of company
I have a large number of projects setup in Git that were previously managed
I use Git in Windows and Linux on a daily basis and I was
I have just set up cruise control.net on our build server, and I am

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.