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:
@@ -3,6 +3,8 @@
|
|||||||
```bash
|
```bash
|
||||||
# Clone a repository
|
# Clone a repository
|
||||||
git clone <repository-url>
|
git clone <repository-url>
|
||||||
|
# Clone a repository with branch checkout
|
||||||
|
git clone -b branch_name <repository-url>
|
||||||
|
|
||||||
# Add a remote
|
# Add a remote
|
||||||
git remote add <name> <url>
|
git remote add <name> <url>
|
||||||
|
|||||||
Reference in New Issue
Block a user