I am using Sourcetree and PuTTY to try to make a server copy (according to this guide).
I have triple checked that all links are correct, all spelling is correct, and that the two empty and initialized repos, site_hub.git + www, read “ref: refs/heads/master” when using cat HEADS. Sourcetree did not show any errors. However, whenever I attempt to use “git remote show hub” (after adding git remote add hub ../site_hub.git)… this is the following output:
git remote show hub
* remote hub
Fetch URL: ../site_hub.git
Push URL: ../site_hub.git
HEAD branch: (unknown)
Remote branch:
main new (next fetch will store in remotes/hub)
git branch returns no result,and git status returns
On branch master
No commits yet
nothing to commit (create/copy files and use "git add" to track)
I’ve tried creating a new branch, but it seems like I need to be pulling one from Sourcetree so I can have the files copied over?
Essentially, I’m trying to clone the origin to my own git, site_hub.git.. if I’m understanding this guide correctly.
Instead, I’m seeing the error of HEADS:(unknown).
Tori Hunter is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.