Cloning from the master branch is straightforward, but cloning from a specific branch is a bit different. There are various methods to accomplish this, but I prefer this approach.
Create a folder on your system where you want to store the code.
Open Visual Studio Code, go to the Terminal, and navigate to the folder you created in step 1.
Enter the following command:
git clone -b develop https://gdr@dev.azure.com/gdrMigration/Rental/_git/Proj2023.
Explanation:
develop: The branch that will be cloned.
https://gdr@dev.azure.com/gdrMigration/Rental/_git/Proj2023: This is the repository URL.
Kommentare