Re: [git-users] GIT: cloning from godaddy.
On Sun, Mar 25, 2012 at 05:12:57AM -0700, Whitehorse06 wrote: [...] > git clone -u /var/chroot/home/content/85/91334343/git/Readme.txt > myHostAlias > Cloning into myHostAlias... > /var/chroot/home/content/85/91334343/git/Readme.txt '/home/rams/ > domain/git/test/myHostAlias': 1: /var/chroot/home/content/85/91334343/ > git/Readme.txt: not found > fatal: The remote end hung up unexpectedly > > > I am struck. What is causing the problem? Git is not Subversion, it's a DVCS so you can't just fetch one single file, instead, you have to *clone* (that's why it's called `git clone` after all) the whole repository (but see below). Consequently, you have to use the path to a repository with `git clone`. Technically, `git clone` can do what's called a "shallow clone", that is, it's able to fetch not the whole history but just the specified number of commits from a given remote branch and all associated objects, so you can kind of achieve what `svn checkout` can yield when run with the URL of a root directory of a project. But if you intend to do any serious work against a repository, shallow cloning is not a recommended way to go, it's intended for cases when you just want to fetch a source tree for the purpose of building it or something like this. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
[git-users] GIT: cloning from godaddy.
On Sunday, March 25, 2012, Whitehorse06 wrote: > a) git clone ssh://ftpu...@118.139.xxx.5/~/git/Read me.txt > (note xxx) is changed for privacy reasons. > > I get the following error message > > Cloning into Readme.txt... > fatal: Invalid gitfile format: /var/chroot/home/content/85/91334343/ > git/Readme.txt > fatal: The remote end hung up unexpectedly Ignoring for a moment the fact that README.txt and Readme.txt are two totally different files, they both appear to be text files rather than Git repositories. I think the command you actually want is: git clone ftpu...@118.139.xxx.5:~/testrepo -- -PJ Gehm's Corollary to Clark's Law: Any technology distinguishable from magic is insufficiently advanced. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.
[git-users] GIT: cloning from godaddy.
Hello I have shared hosting account with godaddy. I am trying to install git. I have followed the following steps from the following URL http://dren.ch/git-on-godaddy/ 1. I have ssh setup and I can access. for example my FTP login name is ftpuser if I try ssh ftpu...@mydomain.com no issues and it is working. ~/.bashrc is executed perfectly 2. I have downloaded latest binary (git-1.7.8.2-2.el5.rf.i386.rpm ) from http://pkgs.repoforge.org/git/ and installed as per instruction mkdir ~/opt && cd ~/opt rpm2cpio ~/git-1.7.8.2-2.el5.rf.i386.rpm | cpio -id ~/opt/usr/bin/git --version git version 1.7.8 3. I have configured /.bashrc with the following PATH=$PATH:$HOME/opt/usr/bin export PATH GIT_EXEC_PATH=$HOME/opt/usr/libexec/git-core export GIT_EXEC_PATH 4. I have verified as per below steps and it is working on the shared host mkdir ~/testrepo cd ~/testrepo echo 'This is a test' > README.txt git init warning: templates not found /usr/share/git-core/templates Initialized empty Git repository in /home/content/XX/YYY/git/.git/ git add README.txt git commit -m 'initial version' [master (root-commit) 5214f3b] initial version 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 README.txt 5. But I am unable to clone from the shared host to my local PC I have tried to the following commands a) git clone ssh://ftpu...@118.139.xxx.5/~/git/Read me.txt (note xxx) is changed for privacy reasons. I get the following error message Cloning into Readme.txt... fatal: Invalid gitfile format: /var/chroot/home/content/85/91334343/ git/Readme.txt fatal: The remote end hung up unexpectedly b) So I have followed the following steps http://www.adac-solutions.com/?p=94 and created a config file $ cd ~/.ssh $ vi config # Put the following in your config file change "myhost" and "myid" with your # GoDaddy host and userid Host myHostAlias HostName 118.139.xxx.5 User ftpuser IdentityFile ~/.ssh/myid@goDaddy doubt: I have used IdentityFile as follows IdentityFile ~/.ssh/id_rsa This id_rsa file is located on my local PC . Is the steps correct for IdentityFile and Host, Hostname, User? when I tried the following command, it works (I could able to login) ssh myHostAlias but I am not sure how to clone? When i tried the following git clone -u /var/chroot/home/content/85/91334343/git/Readme.txt myHostAlias Cloning into myHostAlias... /var/chroot/home/content/85/91334343/git/Readme.txt '/home/rams/ domain/git/test/myHostAlias': 1: /var/chroot/home/content/85/91334343/ git/Readme.txt: not found fatal: The remote end hung up unexpectedly I am struck. What is causing the problem? Thank you in advance. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.