From 7922c2e6d17d1f23dd38b752411f21eb48c4c2f0 Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Mon, 17 Feb 2025 09:17:10 +0100 Subject: [PATCH] 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. --- cheat-sheets/git.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cheat-sheets/git.md b/cheat-sheets/git.md index d041847..587ffa1 100644 --- a/cheat-sheets/git.md +++ b/cheat-sheets/git.md @@ -3,6 +3,8 @@ ```bash # Clone a repository git clone +# Clone a repository with branch checkout +git clone -b branch_name # Add a remote git remote add