Wednesday, January 1, 2025
HomeTechHow to Clone a Specific Git Branch

How to Clone a Specific Git Branch

To clone a specific branch from a repository, use the following command:

bash
git clone -b <branch-name> <repository-url>

This clones only the specified branch, along with the repository files.

RELATED ARTICLES

Leave a Reply

- Advertisment -

Most Popular

Recent Comments