Skip to content

Commit c4d63e1

Browse files
committed
Added sparse-checkout instruction to AngularJS sample
1 parent ba124d5 commit c4d63e1

File tree

1 file changed

+28
-0
lines changed
  • samples/features/json/angularjs/dotnet-tour-of-heroes

1 file changed

+28
-0
lines changed

samples/features/json/angularjs/dotnet-tour-of-heroes/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ In this example you will see how easily you can integrate Single-page apps imple
88

99
[About this sample](#about-this-sample)<br/>
1010
[Before you begin](#before-you-begin)<br/>
11+
[Get this sample](#get-this-sample)<br/>
1112
[Run this sample](#run-this-sample)<br/>
1213
[Sample details](#sample-details)<br/>
1314
[Disclaimers](#disclaimers)<br/>
@@ -39,6 +40,33 @@ To run this sample, you need the following prerequisites.
3940

4041
1. Permission to create an Azure SQL Database
4142

43+
44+
<a name=get-this-sample></a>
45+
46+
## Get this sample
47+
48+
Sample project is placed on SQL Server GitHub repository. You can clone or download repository and locate code
49+
in samples/features/json/angularjs/dotnet-tour-of-heroes folder.
50+
51+
If you want to clone only this sample (without other samples), run the following commands from Git Bash:
52+
53+
```
54+
git clone -n https://github.com/Microsoft/sql-server-samples sql-server-samples
55+
cd sql-server-samples
56+
git config core.sparsecheckout true
57+
echo "samples/features/json/angularjs/dotnet-tour-of-heroes/*" >> .git/info/sparse-checkout
58+
git checkout
59+
```
60+
61+
Or you can use the following PowerShell script:
62+
```
63+
git clone -n https://github.com/Microsoft/sql-server-samples .\sql-server-samples
64+
cd sql-server-samples
65+
git config core.sparsecheckout true
66+
echo samples/features/json/angularjs/dotnet-tour-of-heroes/* | Out-File -append -encoding ascii .git/info/sparse-checkout
67+
git checkout
68+
```
69+
4270
<a name=run-this-sample></a>
4371

4472
## Run this sample

0 commit comments

Comments
 (0)