From c4d63e1a39b5705b5ab27d2c22e0e4bfbd068c0e Mon Sep 17 00:00:00 2001 From: Jovan Popovic Date: Mon, 18 Dec 2017 11:15:06 +0100 Subject: [PATCH] Added sparse-checkout instruction to AngularJS sample --- .../angularjs/dotnet-tour-of-heroes/README.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/samples/features/json/angularjs/dotnet-tour-of-heroes/README.md b/samples/features/json/angularjs/dotnet-tour-of-heroes/README.md index 8faaae0e..06562fee 100644 --- a/samples/features/json/angularjs/dotnet-tour-of-heroes/README.md +++ b/samples/features/json/angularjs/dotnet-tour-of-heroes/README.md @@ -8,6 +8,7 @@ In this example you will see how easily you can integrate Single-page apps imple [About this sample](#about-this-sample)
[Before you begin](#before-you-begin)
+[Get this sample](#get-this-sample)
[Run this sample](#run-this-sample)
[Sample details](#sample-details)
[Disclaimers](#disclaimers)
@@ -39,6 +40,33 @@ To run this sample, you need the following prerequisites. 1. Permission to create an Azure SQL Database + + + +## Get this sample + +Sample project is placed on SQL Server GitHub repository. You can clone or download repository and locate code +in samples/features/json/angularjs/dotnet-tour-of-heroes folder. + +If you want to clone only this sample (without other samples), run the following commands from Git Bash: + +``` +git clone -n https://github.com/Microsoft/sql-server-samples sql-server-samples +cd sql-server-samples +git config core.sparsecheckout true +echo "samples/features/json/angularjs/dotnet-tour-of-heroes/*" >> .git/info/sparse-checkout +git checkout +``` + +Or you can use the following PowerShell script: +``` +git clone -n https://github.com/Microsoft/sql-server-samples .\sql-server-samples +cd sql-server-samples +git config core.sparsecheckout true +echo samples/features/json/angularjs/dotnet-tour-of-heroes/* | Out-File -append -encoding ascii .git/info/sparse-checkout +git checkout +``` + ## Run this sample