Add command to clone a repository with branch checkout

This update includes an example of how to clone a specific branch using `git clone`. It enhances the cheat sheet by providing more practical git use cases.
This commit is contained in:
2025-02-17 09:17:10 +01:00
parent bf88b9b7b5
commit 7922c2e6d1

View File

@@ -3,6 +3,8 @@
```bash
# Clone a repository
git clone <repository-url>
# Clone a repository with branch checkout
git clone -b branch_name <repository-url>
# Add a remote
git remote add <name> <url>