1

In one of AWS/AMI instance, I'm trying to git clone ... it says Cloning into '<repo name>'... but it doesn't clone the repository and not showing any error or any other messages, I have also tried with different repositories that are already working at other servers,

I have also tried to upload complete code with .git dir, it shows the correct state with git status and shows branch with git branch but the command git pull is not working either nor showing any error message.

UPDATE 1: I just tried doing git fetch --all, and got the following error:

Fetching origin
error: Could not fetch origin

UPDATE 2: When I changed remote origin to use ssh instead of https path, and did git fetch --all or git clone, I got the following error:

Fetching origin
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch origin

Please note that I am committing to the same repository from my local machine.

7
  • what does 'git remote -v' give you?
    – Nodebody
    Commented Jun 17, 2014 at 7:24
  • @Nodebody it says fatal: Not a git repository (or any of the parent directories): .git since I can't git clone I don't have any repo right now
    – zzlalani
    Commented Jun 17, 2014 at 7:27
  • git remote -v gives the same output on my localhost and on the server, as i have copied the folder with .git folder
    – zzlalani
    Commented Jun 17, 2014 at 7:42
  • Yep, I thought in the copied directory... anyway what protocol are you using to clone? http, https, ssh?
    – Nodebody
    Commented Jun 17, 2014 at 7:43
  • Both, the question is in perspective of https. With ssh there is an error. Updating my question with that info too.
    – zzlalani
    Commented Jun 17, 2014 at 7:47

0

You must log in to answer this question.

Browse other questions tagged .