Hi,
I am new to question. Please help me with this.
I copied an already existing project from a remote server using scp to my
local directory.
The contents of this directory are
branches
config
description
HEAD
hooks
info
objects
ref
I checked all the directories and sub-directories but could not find a
single source code file (in C language).
All I can see at the leaf level appear to be MD5 hash code.
Is there any command to retrieve the source files ?
As per manual, only then I guess I can add them to git.
Any help would be appreciated.
Thanks
--
View this message in context: http://git.661346.n2.nabble.com/Newbie-question-tp5548737p5548737.html
Sent from the git mailing list archive at Nabble.com.
From: Andrew Keller <hidden> Date: 2016-06-15 22:49:34
On Sep 19, 2010, at 7:51 PM, kinley wrote:
Hi,
I am new to question. Please help me with this.
I copied an already existing project from a remote server using scp to my
local directory.
The contents of this directory are
branches
config
description
HEAD
hooks
info
objects
ref
This directory listing is what you would expect if you were looking at the repository itself. To access your files in the repository, you want to create a non-bare (normal) clone.
git clone path-to-git-repo
On a side note, git can clone over ssh, so you don't need to use scp to copy a project over the network. If your intent is to create a clone of a remote project on your computer, then cloning over ssh generally takes fewer commands than doing the copy manually first.
~ Andrew Keller
Thanks for your help.
Actually now I tried doing this
git clone ssh://user@host/~/GPUProject/Histogram
but getting
bash: git-upload-pack: command not found
fatal: The remote end hung up unexpectedly
I tried several ways of specifying the path of the URL assuming that this
could be a path issue but every time it gives the same error.
Thanks once again.
--
View this message in context: http://git.661346.n2.nabble.com/Newbie-question-tp5548737p5548842.html
Sent from the git mailing list archive at Nabble.com.
From: Imran M Yousuf <hidden> Date: 2016-06-15 22:49:34
Try:
git clone user@host:/home/user/GPUProject/Histogram/.git/
I added .git assuming that, that is the folder to which you gave the
ls output in your first email, the path should be upto that folder.
On Mon, Sep 20, 2010 at 6:50 AM, kinley [off-list ref] wrote:
Thanks for your help.
Actually now I tried doing this
git clone ssh://user@host/~/GPUProject/Histogram
but getting
bash: git-upload-pack: command not found
fatal: The remote end hung up unexpectedly
I tried several ways of specifying the path of the URL assuming that this
could be a path issue but every time it gives the same error.
Thanks once again.
--
View this message in context: http://git.661346.n2.nabble.com/Newbie-question-tp5548737p5548842.html
Sent from the git mailing list archive at Nabble.com.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Kevin Ballard <hidden> Date: 2016-06-15 22:49:34
It sounds like git-upload-pack is not in the PATH of your non-interactive shell. Assuming git is installed on the remote host, you should ssh in to it and figure out where git is installed (run `git --exec-path`), then run your command like so
git clone -u /path/to/libexec/git-core/git-upload-pack ssh://user@host/~/GPUProject/Histogram
In my case that path is /usr/local/libexec/git-core/git-upload-pack.
-Kevin Ballard
On Sep 19, 2010, at 5:50 PM, kinley wrote:
Thanks for your help.
Actually now I tried doing this
git clone ssh://user@host/~/GPUProject/Histogram
but getting
bash: git-upload-pack: command not found
fatal: The remote end hung up unexpectedly
I tried several ways of specifying the path of the URL assuming that this
could be a path issue but every time it gives the same error.
Thanks once again.
--
View this message in context: http://git.661346.n2.nabble.com/Newbie-question-tp5548737p5548842.html
Sent from the git mailing list archive at Nabble.com.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Jakub Narebski <hidden> Date: 2016-06-15 22:49:34
kinley [off-list ref] writes:
I am new to question. Please help me with this.
I copied an already existing project from a remote server using scp to my
local directory.
In the future use "git clone <scp-location>" instead of 'scp'.
The contents of this directory are
branches
config
description
HEAD
hooks
info
objects
ref
I checked all the directories and sub-directories but could not find a
single source code file (in C language).
All I can see at the leaf level appear to be MD5 hash code.
Is there any command to retrieve the source files ?
As per manual, only then I guess I can add them to git.
You have the repository itself (the object database containg all
version info plus other info). Put those files and directories into
<project>/.git subdirectory, and use "git checkout" from within it.
You should have checked out files in <project>/ directory.
--
Jakub Narebski
Poland
ShadeHawk on #git
From: Alex Riesen <hidden> Date: 2016-06-15 22:49:34
On Mon, Sep 20, 2010 at 01:51, kinley [off-list ref] wrote:
Hi,
I am new to question. Please help me with this.
I copied an already existing project from a remote server using scp to my
local directory.
The contents of this directory are
branches
config
description
HEAD
hooks
info
objects
ref
I checked all the directories and sub-directories but could not find a
single source code file (in C language).
All I can see at the leaf level appear to be MD5 hash code.
It is SHA-1
Is there any command to retrieve the source files ?
try this:
git clone . ../Histogram
But others are right, and you should have used git clone, instead of scp.