I am trying to clone my repo from bitbucket to my pc but when I pasted the URL using git bash it displays message cloning into ' repo name ' and it only creates an empty folder. Not able to resolve it. plz help
Hey @Anjana Kapoor
G'day!
There are multiple reasons that the clone succeeded and the folder is empty let's explore some of them.
Check if there's any content in the folder by using bash to navigate into the folder and run "ls -lah" this will list out all the files even the one hidden. If there's a file then the issue would probably be because the files were hidden so try running "git branch -a" to list out the branch in your repositories and "git checkout the <branchname>" to start working on the branch
Another common issue is that you are using outdated git, so please download and install the latest git then navigate into the folder via terminal and check if git initiates accordingly.
If both didn't work then most likely the issue is with the cloning steps themselves and we may need to further investigate by running the following verbose commands when re-cloning the repositories:
If you use HTTPS:
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 <git clone command>
If you use SSH:
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" <git clone command>
Let me know how it goes
Cheers,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.