Skip to content

Instantly share code, notes, and snippets.

@awright18
Last active October 20, 2017 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awright18/8f6750d104e0f6bcaf3322d0aba36031 to your computer and use it in GitHub Desktop.
Save awright18/8f6750d104e0f6bcaf3322d0aba36031 to your computer and use it in GitHub Desktop.
dotnet new template.json intializing a git repository
{
"$schema": "http://json.schemastore.org/template",
"author": "Adam",
"classifications": [ "classlib" ],
"name": "My class lib",
"identity": "Adam.ClassLib2.CSharp",
"groupIdentity":"MyClassLib",
"shortName": "MyClassLib", // You can create the project using this short name instead of the one above.
"tags": {
"language": "C#", // Specify that this template is in C#.
"type":"project"
},
"sourceName": "DotNetTemplate", // Will replace the string 'DotNetTemplate' with the value provided via -n.
"preferNameDirectory":true,
"postActions": [
{
"description": "Run 'git flow init -d'",
"actionId": "3A7C4B45-1F5D-4A30-959A-51B88E82B5D2",
"manualInstructions": [
{ "text": "Run 'git flow init -d'" }
],
"args": {
"executable": "git",
"args": "flow init -d"
}
},
{
"description": "Run 'git add .'",
"actionId": "3A7C4B45-1F5D-4A30-959A-51B88E82B5D2",
"manualInstructions": [
{ "text": "Run 'git add .'" }
],
"args": {
"executable": "git",
"args": "add ."
}
},
{
"description": "Run 'git commit -m \"adding required files\"'",
"actionId": "3A7C4B45-1F5D-4A30-959A-51B88E82B5D2",
"manualInstructions": [
{ "text": "Run 'git commit -m \"adding required files\"'" }
],
"args": {
"executable": "git",
"args": "commit -m \"adding required files\""
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment