I have just started using git.
I have created a repository.
Then, as I was instructed, I made a “git clone” command which consisted of “git clone” followed by a path.
I expected this to get the contents of the path and put it into my repository – meaning the directory I made. This did not happen. What do I do?
How do I get a local copy of a remote work space for me to work on?
You can get a copy of a remote repository by git clone $repo_url
. Unless you really know what you are doing you should never run this within another git repository.
The command will create a new folder with the remotes repositories content, usually having the remotes configured default branch checked out already.
To change the branch you use git switch $branch_name
within the repository.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.