I trying git clone this case.
For example in git branch:
It is external linked repositories in branch.
I want git clone repository with external linked repositories.
But, I can only check empty directory after git clone.
How to clone git repository with external linked repositories in once try?
There are two ways to clone a specific branch. You can either: Clone the repository, fetch all branches, and checkout to a specific branch immediately. Clone the repository and fetch only a single branch.
In order to clone a specific branch, you have to execute “git branch” with the “-b” and specify the branch you want to clone. $ git clone -b dev https://github.com/username/project.git Cloning into 'project'... remote: Enumerating objects: 813, done.
Navigate to the repository you just cloned. Pull in the repository's Git Large File Storage objects. Mirror-push to the new repository. Push the repository's Git Large File Storage objects to your mirror.
To automatically initialize and update each submodule in the repository, pass --recursive
to the git clone
:
git clone --recursive <repoAddress>
More about submodules: https://git-scm.com/book/en/v2/Git-Tools-Submodules
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With