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.
fatal: Not a git repository (or any of the parent directories): .git
since I can'tgit clone
I don't have any repo right now