Skip to content

Instantly share code, notes, and snippets.

@joshbooker
Created March 18, 2021 15:52
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 joshbooker/b34b172fcbb0995336b69a3424b39ab1 to your computer and use it in GitHub Desktop.
Save joshbooker/b34b172fcbb0995336b69a3424b39ab1 to your computer and use it in GitHub Desktop.
cd %1
git init
echo "README" > README.md
(echo /bin && echo /obj && echo *.log && echo *.dacpac && echo *.bacpac && echo !/refs/*.dacpac) > .gitignore
git add .
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Git Init Project Directory",
"type": "shell",
"command": "gitinit.cmd ${input:pickTestDemo}", // your command here
"args": [
"${input:pickTestDemo}" // wait for the input by "id" below
],
"problemMatcher": []
}
],
"inputs": [
{
"id": "pickTestDemo",
"type": "command",
"command": "folder-operations.getFoldersInWorkspace" // returns a QuickPick element
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment