This guide teaches you how save a node to a github repository.
First start by creating a new repository on github. Then copy the SSH URL of the repository to the clipboard.Let start with a simple node that prints a message to the console.Click on down arrow in the top right corner to flip the node to the backside.As you enter the URL for the git repository, another field will appear where you can enter the branch name.Next press we need to add a ssh key to the MainlyAI secret store. Access the secret store by clicking on the MainlyAI logo in the top right corner of the workspace. You will see a meny pop out. Click on the “Account” option.In the left tab click on the “Secrets” option.Click on the + button to add a new secret and call it “$git_ssh_key”. The value should be a JSON object like this:
{ “ssh_key” : “<your ssh key>” }If your ssh key is password protected you will be prompted to enter a password when pulling and pusing to the repository. If you don’t want to enter a password everytime you can add another secret to the secret store called ‘$ssh_key_password’.Now we can go back to the workbench and click the “Push” button on the back of the node. This will pop up a dialogue window where you can view what will happen after the push.
If you don’t like what you see you can just close down the window and nothing will change.If you want to continue you click the “Push” button again.After a few seconds the window will close and you can continue to work. Pulling from the repository is done in the same way by pressing the “Pull” button.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"MainlyAI","colors":{"primary":"#3b82f6","light":"#3b82f6","dark":"#3b82f6"},"favicon":"/favicon.svg","logo":{"light":"https://mintcdn.com/mainlyai/7V7KerwYDQXshUAM/logo/logo-wordmark-color-dark.svg?fit=max\u0026auto=format\u0026n=7V7KerwYDQXshUAM\u0026q=85\u0026s=d233775db4550de6bc62c7a097a44313","dark":"https://mintcdn.com/mainlyai/7V7KerwYDQXshUAM/logo/logo-wordmark-color-light.svg?fit=max\u0026auto=format\u0026n=7V7KerwYDQXshUAM\u0026q=85\u0026s=ac7cbf7d428b146847a2a35cefaff04b"},"api":{"openapi":"https://platform.mainly.ai/openapi.json"},"navbar":{"links":[{"label":"Contact Us","href":"mailto:contact@mainly.ai"}],"primary":{"type":"button","label":"Get Started","href":"https://mainly.ai/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/mainly-ai","discord":"https://discord.gg/x5eADa86cC","github":"https://github.com/mainly-ai"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","href":"https://discord.gg/kRgnDwkbwP","icon":"discord"},{"anchor":"Blog","href":"https://mainly.ai/blog","icon":"newspaper"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mainlyai","hasAudioNarration":false,"actualSubdomain":"mainlyai","customDomains":["docs.mainly.ai"],"gitSource":{"type":"github","owner":"mainly-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21c928a12aa01ac336b7b7","collectionId":"7424656c-a0c7-431d-a2bd-60bf9670c97a","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21c928a12aa01ac336b7b7:success","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Documentation","count":36},{"language":"default","tag":"Controls","count":19},{"language":"default","tag":"Core Concepts","count":6},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"How to Use","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".react-flow{user-select:none}.wob-node{min-width:18rem;border-radius:.75rem;border-width:2px;--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity, 1));font-size:.875rem;line-height:1.25rem}.wob-node:is(.dark *){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity, 1))}.workspace-readonly .wob-node,.workspace-readonly .wob-node *{pointer-events:none!important;user-select:none!important}.selected .wob-node:not(.embedded-node){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity, 1))}.wob-node.embedded-node{width:calc(17rem - 4px);border-radius:var(--radius)}.wob-node>.node-header{position:relative;display:flex;align-items:center;gap:.25rem;padding:.25rem .5rem;--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity, 1))}.wob-node>.node-header:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity, 1))}.wob-node>.node-header.expanded{border-bottom-width:1px;--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity, 1))}.wob-node>.node-header.expanded:is(.dark *){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity, 1))}.node-detail{position:absolute;top:2rem;left:0;z-index:10;width:100%;border-bottom-right-radius:.75rem;border-bottom-left-radius:.75rem;border-left-width:2px;border-right-width:2px;border-bottom-width:2px;--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity, 1));padding:.5rem}.node-detail:is(.dark *){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity, 1));--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity, 1))}.selected .node-detail{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity, 1))}.wob-node>.node-content{display:flex;cursor:default;flex-direction:column;padding-top:.25rem;padding-bottom:.25rem}.node-group-header-collapsed{position:relative}.node-row>.react-flow__handle.react-flow__handle-left,.node-row>.react-flow__handle.react-flow__handle-right,.wob-handle{position:absolute;height:1rem;width:.5rem;border-style:none;background:#616974;top:calc(.15rem);transform:none}.node-group-header-collapsed>.react-flow__handle.react-flow__handle-left,.node-group-header-collapsed>.react-flow__handle.react-flow__handle-right{position:absolute;height:1rem;width:.5rem;border-style:none;--tw-bg-opacity:1;background-color:rgb(148 163 184/var(--tw-bg-opacity, 1));top:calc(-.5rem);transform:none}.node-group-header-collapsed>.react-flow__handle.react-flow__handle-left:is(.dark *),.node-group-header-collapsed>.react-flow__handle.react-flow__handle-right:is(.dark *){--tw-bg-opacity:1;background-color:rgb(100 116 139/var(--tw-bg-opacity, 1))}.node-group-header-collapsed>.react-flow__handle.react-flow__handle-left:not(.field-handle),.node-row>.react-flow__handle.react-flow__handle-left:not(.field-handle),.wob-handle-left{border-radius:1px 10px 10px 1px;left:-.625rem}.node-group-header-collapsed>.react-flow__handle.react-flow__handle-right:not(.field-handle),.node-row>.react-flow__handle.react-flow__handle-right:not(.field-handle),.wob-handle-right{border-radius:10px 1px 1px 10px;right:-.625rem}.node-group-header-collapsed>.react-flow__handle.react-flow__handle-right{right:-.35rem}.node-group-header-collapsed>.react-flow__handle.field-handle,.node-row>.react-flow__handle.field-handle{border-radius:0}.node-group-header-collapsed>.react-flow__handle.react-flow__handle-left.field-handle,.node-row>.react-flow__handle.react-flow__handle-left.field-handle{left:-.95rem;width:.75rem;border-radius:2px 6px 6px 2px;clip-path:polygon(0 0,100% 0,100% 100%,0 100%,50% 50%)}.node-row>.react-flow__handle.react-flow__handle-right.field-handle{right:-.95rem;width:.75rem;border-radius:4px 2px 2px 4px;clip-path:polygon(50% 0,100% 50%,50% 100%,0 100%,0 0)}.node-row-wrapper{padding-left:.5rem;padding-right:.5rem}.node-row{position:relative;display:flex;flex-direction:column;gap:.25rem}.node-group{border-radius:var(--radius);border-bottom-width:2px;border-style:dashed;--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity, 1));background-color:rgb(241 245 249/var(--tw-bg-opacity, 1));--tw-bg-opacity:0.25;padding-top:.5rem;padding-bottom:.5rem}.node-group:last-child{border-bottom-width:0}.node-group:hover{background-color:rgb(249 250 251/var(--tw-bg-opacity, 1));--tw-bg-opacity:1}.node-group:is(.dark *){--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity, 1));background-color:rgb(55 65 81/var(--tw-bg-opacity, 1));--tw-bg-opacity:0.25}.node-group.collapsed{border-bottom-width:0}.node-group-header{grid-template-columns:0 1fr 0;display:grid;align-items:center;gap:.25rem;padding-left:.5rem;padding-right:.5rem}.node-row:not(.node-row:first-of-type){margin-top:.5rem}.node-row:first-of-type{margin-top:.25rem}.node-row.node-inline-row .node-row{margin-top:0;flex:1 1 0%}.node-row.node-inline-row .node-row:not(.node-row:first-of-type){margin-left:.25rem}.node-handle{position:absolute;bottom:1px;right:1px;height:1rem;width:1rem;cursor:nwse-resize;border-bottom-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px);border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-width:2px;border-right-width:2px;--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity, 1))}.node-handle:hover{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity, 1))}.node-handle:is(.dark *){--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity, 1))}.node-handle:hover:is(.dark *){--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity, 1))}em-emoji-picker{border-width:1px;--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity, 1));--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.wob-disabled{border-style:dashed;opacity:.7}.wob-subscriber{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity, 1))}.selectable-text{user-select:text}.pointer-events-all{pointer-events:all;-webkit-user-select:all;-moz-user-select:all;-ms-user-select:all;user-select:all}"}],"page":{"pagePath":"guides/using_git","slug":"/guides/using_git","pageMetadata":{"title":"Using github for saving nodes","description":"This guide teaches you how save a node to a github repository.","href":"/guides/using_git","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"This guide teaches you how save a node to a github repository.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{OptimizedImage}=_components;if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`First start by creating a new repository on github. Then copy the SSH URL of the repository to the clipboard.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/git_repo_url.png?fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=0500a9151bea4f9c9ed2c5ef96b2ea01`,alt:`git_repo_url`,\"data-og-width\":`3386`,width:`3386`,\"data-og-height\":`1204`,height:`1204`,\"data-path\":`images/guides/using_git/git_repo_url.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/git_repo_url.png?w=280\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=e9aef1729657bcab772f4d9579a45b82 280w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/git_repo_url.png?w=560\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=5de4cb9dd6638a43a3cf2d2c3799d66e 560w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/git_repo_url.png?w=840\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=4292e50605e60bc4a9864f8a84f1a3c5 840w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/git_repo_url.png?w=1100\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=5be6e83174cf4b24f5516a06cb617608 1100w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/git_repo_url.png?w=1650\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=2c7f7db06fb27958db5ffeacdbdfe17c 1650w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/git_repo_url.png?w=2500\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=53f59aa4f405e87ca30f49ee8814060c 2500w`}),`\n`,_jsx(_components.p,{children:`Let start with a simple node that prints a message to the console.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node1.png?fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=8073519ac38b8968e284ba973925c983`,alt:`node1`,width:`200px`,\"data-og-width\":`1248`,\"data-og-height\":`526`,\"data-path\":`images/guides/using_git/node1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node1.png?w=280\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=6896b8fa01f005dca0fea87b2135f495 280w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node1.png?w=560\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=7f644027574214ce8ccd0673fb04930a 560w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node1.png?w=840\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=993878011e2ebcbae166e40ad0dc6688 840w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=f8bdfe5b6816fc17a328dc0b18d78d85 1100w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=c00c5c000d9e780ca0f2c5c2a79d8cdc 1650w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=9a74a6a91b74cf178dd95f7253dbdb8b 2500w`}),`\n`,_jsx(_components.p,{children:`Click on down arrow in the top right corner to flip the node to the backside.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node2.png?fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=03d979d84c2317df329de7e64253c046`,alt:`node1`,width:`200px`,\"data-og-width\":`1226`,\"data-og-height\":`1186`,\"data-path\":`images/guides/using_git/node2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node2.png?w=280\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=d65749aed4bf62edcd6f1e7e3203e99c 280w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node2.png?w=560\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=da60ddffe84335f925fc64a125d69215 560w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node2.png?w=840\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=fe9c22273f7626f877007039b040f4d1 840w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=de80d9454e5196f24ff01562b44d32b2 1100w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=263bfe631e640ddeaca77a08dc74699f 1650w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=cc353b89ceedce7630d18711293a885f 2500w`}),`\n`,_jsx(_components.p,{children:`As you enter the URL for the git repository, another field will appear where you can enter the branch name.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node3.png?fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=48a5f89f3f824be2ff34085cf6bc08df`,alt:`node3`,width:`200px`,\"data-og-width\":`1226`,\"data-og-height\":`1420`,\"data-path\":`images/guides/using_git/node3.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node3.png?w=280\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=d4516ca6ee68df1043207fe6dc8fe5ff 280w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node3.png?w=560\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=086937defa4426f72f076d572910c50a 560w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node3.png?w=840\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=2838289008febb49ded92205aecf1ba5 840w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node3.png?w=1100\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=520202da1167df98ea8bb0823dcfe035 1100w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node3.png?w=1650\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=7dfd649a2925d6559ef5fbd9b3d57035 1650w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/node3.png?w=2500\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=4c76f4776ad654a323c16dd11f9da07b 2500w`}),`\n`,_jsx(_components.p,{children:`Next press we need to add a ssh key to the MainlyAI secret store. Access the secret store by clicking on the MainlyAI logo in the top right corner of the workspace. You will see a meny pop out. Click on the “Account” option.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secret_store1.png?fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=3200e41f14f2ff0288e0050ec75f594f`,alt:`secret_store1`,\"data-og-width\":`2136`,width:`2136`,\"data-og-height\":`476`,height:`476`,\"data-path\":`images/guides/using_git/secret_store1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secret_store1.png?w=280\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=8e3ebbbea184b3c8bfd10c88fbd7dea0 280w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secret_store1.png?w=560\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=2c6eab1c71e5cd35880fb5c92e128e17 560w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secret_store1.png?w=840\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=192244d704fad77fda2c44e6b944a257 840w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secret_store1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=d6a3cb9ce45d2dd8dedded6a568954e6 1100w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secret_store1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=1cbc2691fbfb7bb5e54bd9d4522ac979 1650w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secret_store1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=cb082ff3c82b7e4011f12ae770a3981d 2500w`}),`\n`,_jsx(_components.p,{children:`In the left tab click on the “Secrets” option.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets1.png?fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=1df4b6e825a35c1ad0738691a8dd21e5`,alt:`node1`,width:`300px`,\"data-og-width\":`628`,\"data-og-height\":`1168`,\"data-path\":`images/guides/using_git/secrets1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets1.png?w=280\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=aaac10c2e3363c3fbe78772610a0034f 280w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets1.png?w=560\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=3e0fcae9d857291208461ad7418fa8c3 560w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets1.png?w=840\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=bf1a0f8dec4940f21fdb507f360c2f68 840w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=f9e81f141936fa7052be113b726e67fa 1100w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=17ca5c496cd6dfec016f0af97195124a 1650w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=419f16aaa589ce512838c6eb4f9c9c41 2500w`}),`\n`,_jsx(_components.p,{children:`Click on the + button to add a new secret and call it “$git_ssh_key”. The value should be a JSON object like this:\n{ “ssh_key” : “\u003cyour ssh key>” }`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets2.png?fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=0e198e21f9d31bf17ac2f1d838e3c92b`,alt:`secret2`,\"data-og-width\":`1920`,width:`1920`,\"data-og-height\":`186`,height:`186`,\"data-path\":`images/guides/using_git/secrets2.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets2.png?w=280\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=f2cbe0abc7571f9a1dff6388a5c5184d 280w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets2.png?w=560\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=f526b30e6d99df612a0a75b35bb6e11e 560w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets2.png?w=840\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=7f68a4ef7a7a0d020afcd48f5791b609 840w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets2.png?w=1100\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=38a7f641783070e4fde2d71c75a2b0dc 1100w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets2.png?w=1650\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=f4971b297af4ffa5e300473fdd589ff0 1650w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets2.png?w=2500\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=1a08ec13b0c408572e5805fd61a5873b 2500w`}),`\n`,_jsx(_components.p,{children:`If your ssh key is password protected you will be prompted to enter a password when pulling and pusing to the repository. If you don’t want to enter a password everytime you can add another secret to the secret store called ‘$ssh_key_password’.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets3.png?fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=6d3d53665693f6df7cec5bc00f19f7a7`,alt:`secret3`,\"data-og-width\":`1920`,width:`1920`,\"data-og-height\":`186`,height:`186`,\"data-path\":`images/guides/using_git/secrets3.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets3.png?w=280\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=d21e5a760c8e5b2b24ba15ba49da516e 280w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets3.png?w=560\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=d9560d1b34e7f27d8e560c494aabfb7c 560w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets3.png?w=840\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=97990b6d41941585ad404267c11b705e 840w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets3.png?w=1100\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=ae2ad7d48aed035eb9561ea654ae22ad 1100w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets3.png?w=1650\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=20ced34d3ff1f40ecf045414fabeadc6 1650w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/secrets3.png?w=2500\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=f0300ac941dae936d1a1a14013996387 2500w`}),`\n`,_jsx(_components.p,{children:`Now we can go back to the workbench and click the “Push” button on the back of the node. This will pop up a dialogue window where you can view what will happen after the push.\nIf you don’t like what you see you can just close down the window and nothing will change.`}),`\n`,_jsx(_components.p,{children:`If you want to continue you click the “Push” button again.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/pushing.png?fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=011626580bc5d6c4f7e3a581c6df1ab7`,alt:`pushing`,\"data-og-width\":`3146`,width:`3146`,\"data-og-height\":`1648`,height:`1648`,\"data-path\":`images/guides/using_git/pushing.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/pushing.png?w=280\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=5abc9091ee78d3becb5f40b95cb90d9d 280w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/pushing.png?w=560\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=b2d583a8cd487c6cfa31c987680daa16 560w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/pushing.png?w=840\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=aa61500146a691ae928951992608b65b 840w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/pushing.png?w=1100\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=f5409bb78a7b3cdda656ede4afa97fd4 1100w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/pushing.png?w=1650\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=1ddf150062a97d0ba7e830721eca9b52 1650w, https://mintcdn.com/mainlyai/FJUQ4hjdYyeHcxxE/images/guides/using_git/pushing.png?w=2500\u0026fit=max\u0026auto=format\u0026n=FJUQ4hjdYyeHcxxE\u0026q=85\u0026s=d1b1d4b11bc2dc6bcf7cc12766babcc6 2500w`}),`\n`,_jsx(_components.p,{children:`After a few seconds the window will close and you can continue to work. Pulling from the repository is done in the same way by pressing the “Pull” button.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Using github for saving nodes","description":"This guide teaches you how save a node to a github repository.","href":"/guides/using_git","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"mainlyai","siteName":"MainlyAI","title":"Using github for saving nodes - MainlyAI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T23:48:46.620Z","originalFileLocation":"guides/using_git.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"This guide teaches you how save a node to a github repository.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MainlyAI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Using github for saving nodes - MainlyAI\">\u003cmeta data-mint-head property=\"og:description\" content=\"This guide teaches you how save a node to a github repository.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MainlyAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mainly.ai/guides/using_git\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mainlyai.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Using+github+for+saving+nodes\u0026amp;description=This+guide+teaches+you+how+save+a+node+to+a+github+repository.\u0026amp;theme=2647f48b30a13ca471d7ce4e\u0026amp;signature=d756f68773fdff162b1fb45d796eb606db0c83e2b393605986295ff3c7b5372d\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Using github for saving nodes - MainlyAI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This guide teaches you how save a node to a github repository.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mainlyai.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Using+github+for+saving+nodes\u0026amp;description=This+guide+teaches+you+how+save+a+node+to+a+github+repository.\u0026amp;theme=2647f48b30a13ca471d7ce4e\u0026amp;signature=d756f68773fdff162b1fb45d796eb606db0c83e2b393605986295ff3c7b5372d\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/mainlyai/wwuzfbj5KCj-uZgh/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MainlyAI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#3b82f6\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mainly.ai/guides/using_git\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/using_git.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mainly.ai/#organization\",\"name\":\"MainlyAI\",\"url\":\"https://docs.mainly.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mainlyai/7V7KerwYDQXshUAM/logo/logo-wordmark-color-dark.svg?fit=max\u0026auto=format\u0026n=7V7KerwYDQXshUAM\u0026q=85\u0026s=d233775db4550de6bc62c7a097a44313\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mainly.ai#website\",\"name\":\"MainlyAI\",\"url\":\"https://docs.mainly.ai\",\"publisher\":{\"@id\":\"https://docs.mainly.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mainly.ai/guides/using_git#webpage\",\"url\":\"https://docs.mainly.ai/guides/using_git\",\"name\":\"Using github for saving nodes\",\"description\":\"This guide teaches you how save a node to a github repository.\",\"dateModified\":\"2026-01-06T23:48:46.620Z\",\"isPartOf\":{\"@id\":\"https://docs.mainly.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mainly.ai/guides/using_git#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mainly.ai/guides/using_git#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.mainly.ai/guides/visualizing-a-dataset\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using github for saving nodes\",\"item\":\"https://docs.mainly.ai/guides/using_git\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.mainly.ai/guides/using_git#article\",\"headline\":\"Using github for saving nodes\",\"name\":\"Using github for saving nodes\",\"description\":\"This guide teaches you how save a node to a github repository.\",\"url\":\"https://docs.mainly.ai/guides/using_git\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mainly.ai/guides/using_git#webpage\"},\"dateModified\":\"2026-01-06T23:48:46.620Z\",\"publisher\":{\"@id\":\"https://docs.mainly.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mainly.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MainlyAI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"MainlyAI","nav":{"global":{"anchors":[{"anchor":"Community","href":"https://discord.gg/kRgnDwkbwP","icon":"discord"},{"anchor":"Blog","href":"https://mainly.ai/blog","icon":"newspaper"}]},"anchors":[{"anchor":"Documentation","icon":"book-open","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Thinking with Nodes","href":"/thinking_with_nodes","hidden":false},{"title":"Glossary","href":"/glossary","hidden":false},{"title":"Mainly LLM","href":"/mainlyllm","hidden":false}]},{"group":"Core Concepts","pages":[{"title":"Knowledge Objects","href":"/core_concepts/knowledge_objects","hidden":false},{"title":"Workflow Objects (WOBs)","href":"/core_concepts/workflow_objects","hidden":false},{"title":"Attributes","href":"/core_concepts/attributes","hidden":false},{"title":"Fields","href":"/core_concepts/fields","hidden":false},{"title":"Controls","href":"/core_concepts/controls","hidden":false},{"title":"Processors","href":"/core_concepts/processors","hidden":false}]},{"group":"How to Use","pages":[{"title":"Resize nodes","href":"/how-to-use/resize-nodes","hidden":false}]},{"group":"Controls","pages":[{"title":"Textbox","href":"/controls/textbox","hidden":false},{"title":"Slider","href":"/controls/slider","hidden":false},{"title":"Checkbox","href":"/controls/checkbox","hidden":false},{"title":"Select","href":"/controls/select","hidden":false},{"title":"KVSelect","href":"/controls/kv-select","hidden":false},{"title":"File","href":"/controls/file","hidden":false},{"title":"CodeEditor","href":"/controls/codeeditor","hidden":false},{"title":"Markdown","href":"/controls/markdown","hidden":false},{"title":"Image","href":"/controls/image","hidden":false},{"title":"Video","href":"/controls/video","hidden":false},{"title":"Audio","href":"/controls/audio","hidden":false},{"title":"Plotly","href":"/controls/plotly","hidden":false},{"title":"Table","href":"/controls/table","hidden":false},{"title":"Notice","href":"/controls/notice","hidden":false},{"title":"ImageMask","href":"/controls/imagemask","hidden":false},{"title":"ChatPreview","href":"/controls/chatpreview","hidden":false},{"title":"ContinueButton","href":"/controls/continuebutton","hidden":false},{"title":"RunUntilButton","href":"/controls/rununtilbutton","hidden":false},{"title":"DynamicNodeCompileButton","href":"/controls/dynamicnodecompilebutton","hidden":false}]},{"group":"Guides","pages":[{"title":"Visualizing a Dataset","href":"/guides/visualizing-a-dataset","hidden":false},{"title":"Writing, debugging and deploying webservices","description":"This guide teaches you how to use the server_http node to build a web service.","href":"/guides/webservices","hidden":false},{"title":"Using github for saving nodes","href":"/guides/using_git","hidden":false},{"title":"Using LLM tools","description":"This guide teaches you how to use LLM tools in Mainly AI.","href":"/guides/using_llm_tools","hidden":false},{"title":"Using wob notifications","href":"/guides/using_notifications","hidden":false},{"title":"Using built in RabbitMQ queues","href":"/guides/using_rabbitmq","hidden":false}]}]}]},"title":"Using github for saving nodes - MainlyAI","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-D7yRe3On.js","lightbox-handle-r17bVUz3.js"]}