Search code examples
sshputty.git-folder

Make.git open in ssh


I have download a git with a wget on a vps through putty.

I see the file is listed on the vps like so:

bitcoin-sniffer.git  .lastlogin     .python_history

Now how can I execute the .git, or actually use the files that are within it? I have tried

 git clone bitcoin-sniffer.git

The error:

fatal: destination path 'bitcoin-sniffer.git' already exists and is not an empty directory.

Solution

  • Generally, the git clone command is followed by an address with ssh or HTTPS path to download a repo. The git command is not run against a *.git "package".

    An example would be: bash git clone https://github.com/sebicas/bitcoin-sniffer.git

    This would download and create a folder by the name bitcoin-sniffer. Within this folder, git commands can be run, like git status.