JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.project.initGit({
...
}){
"id": "<string>",
"worktree": "<string>",
"time": {
"created": 123,
"updated": 123,
"initialized": 123
},
"sandboxes": [
"<string>"
],
"vcs": "git",
"name": "<string>",
"icon": {
"url": "<string>",
"override": "<string>",
"color": "<string>"
},
"commands": {
"start": "<string>"
}
}API Reference
Initialize git repository
Create a git repository for the current project and return the refreshed project info.
POST
/
project
/
git
/
init
JavaScript
import { createCognitioClient } from "@cognitio/sdk
const client = createCognitioClient()
await client.project.initGit({
...
}){
"id": "<string>",
"worktree": "<string>",
"time": {
"created": 123,
"updated": 123,
"initialized": 123
},
"sandboxes": [
"<string>"
],
"vcs": "git",
"name": "<string>",
"icon": {
"url": "<string>",
"override": "<string>",
"color": "<string>"
},
"commands": {
"start": "<string>"
}
}