Problems cloning 1and1 git repository in 1and1 shared Linux server with Eclipse EGit

拟墨画扇 提交于 2019-12-06 11:22:44

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).

I am not sure if you are still having issues with the "does not appear to be a git repository." issue.

I ran into the same problem and I found a solution without having to type out the entire 'pwd' url.

It appears that when you use ssh commands remotely into 1and1, they are not being run from your account's home directory (which is strange). You can force the lookup to start from your home directory like this.

ssh://<username>@example.com:22/~/project

Notice the '~'. This will look for the project under your base path in 1and1.

I hope this helps.

zuiqo

I just ran across the same problem using Aptana Studio 3.

Using

ssh://u1234@domain.com/~/gitrepository

solved it for me (Using 1&1, replacing the obvious).

I had the same problem with Git Tower on the Mac. I finally got it going with ...

ssh://username@sshuser.online.de/~/repository.git

This is kind of strange because if I login via ssh, I get redirected to the home directory and the repository.git is right 'there'.

But now it works!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!