Created
January 3, 2024 16:33
-
-
Save joe-oli/61a7c91e2bcc50243b648f6ea8619c0f to your computer and use it in GitHub Desktop.
Git Clone Single Branch Only
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change to the folder where you want to create newBranchName | |
git clone --single-branch --branch features/upgrade ^ | |
C:\Projects\DevOps\MyRepoName newBranchName | |
# C:\Projects\DevOps\MyRepoName is the repo where the branch you want to clone resides in; | |
# newBranchName is relative to current folder; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment