1"use strict";(self.webpackChunktandem=self.webpackChunktandem||[]).push([[8363],{6408:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>a,frontMatter:()=>r,metadata:()=>d,toc:()=>h});var o=n(4848),i=n(8453);const r={sidebar_label:"Git - Your NonStop to Cloud Repository",sidebar_position:1,tags:["where to start"]},s="Connecting git to Your NonStop",d={id:"tutorials/git",title:"Connecting git to Your NonStop",description:"Git is the industry standard for version control in the DevOps (Developer x Operations) space. So much that it has become a household name for every developer in the world.",source:"@site/docs/2-tutorials/1-git.md",sourceDirName:"2-tutorials",slug:"/tutorials/git",permalink:"/nonstop101/docs/tutorials/git",draft:!1,unlisted:!1,editUrl:"https://github.com/new2nonstop/nonstop101/blob/main/docs/2-tutorials/1-git.md",tags:[{inline:!0,label:"where to start",permalink:"/nonstop101/docs/tags/where-to-start"}],version:"current",sidebarPosition:1,frontMatter:{sidebar_label:"Git - Your NonStop to Cloud Repository",sidebar_position:1,tags:["where to start"]},sidebar:"tutorialSidebar",previous:{title:"Tutorials",permalink:"/nonstop101/docs/category/tutorials"},next:{title:"Apache Tomcat - Setup",permalink:"/nonstop101/docs/tutorials/apache tomcat"}},l={},h=[{value:"1. Generating the Public Key on NonStop",id:"1-generating-the-public-key-on-nonstop",level:2},{value:"2. Retrieving the Key from Guardian",id:"2-retrieving-the-key-from-guardian",level:2},{value:"3. Dropping the key onto the cloud repository",id:"3-dropping-the-key-onto-the-cloud-repository",level:2},{value:"4. Adding the Host onto the NonStop",id:"4-adding-the-host-onto-the-nonstop",level:2},{value:"Bitbucket",id:"bitbucket",level:3},{value:"GitHub",id:"github",level:3},{value:"Deleting NonStop Generated Key on NonStop",id:"deleting-nonstop-generated-key-on-nonstop",level:2}];function c(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h1,{id:"connecting-git-to-your-nonstop",children:"Connecting git to Your NonStop"}),"\n",(0,o.jsx)(t.h1,{id:"what-is-git",children:"What is git?"}),"\n",(0,o.jsx)(t.p,{children:"Git is the industry standard for version control in the DevOps (Developer x Operations) space. So much that it has become a household name for every developer in the world."}),"\n",(0,o.jsx)(t.p,{children:"Git and its workflow management maintains good coding practices, and regulates the development of applications."}),"\n",(0,o.jsx)(t.p,{children:"Here's how to get started on getting git onto your NonStop."}),"\n",(0,o.jsx)(t.h1,{id:"connecting-your-repos-on-the-public-cloud-to-your-nonstop",children:"Connecting your repos on the public cloud to your NonStop"}),"\n",(0,o.jsx)(t.p,{children:"Now that you have git set up on your NonStop, our next steps would be to figure out how to connect the repositories on the cloud and other systems to our NonStop."}),"\n",(0,o.jsx)(t.p,{children:"We will need to do 4 things:"}),"\n",(0,o.jsxs)(t.ol,{children:["\n",(0,o.jsx)(t.li,{children:"Generate the public key on the NonStop to establish a SSH Connection"}),"\n",(0,o.jsx)(t.li,{children:"Retrieve the Key generated on the NonStop"}),"\n",(0,o.jsx)(t.li,{children:"Drop the Public Key onto the cloud repository"}),"\n",(0,o.jsx)(t.li,{children:"Add the Host into the NonStop"}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:"Let's get started!"}),"\n",(0,o.jsx)(t.h2,{id:"1-generating-the-public-key-on-nonstop",children:"1. Generating the Public Key on NonStop"}),"\n",(0,o.jsxs)(t.ol,{children:["\n",(0,o.jsx)(t.li,{children:"Log onto your NonStop system and type this command in Guardian."}),"\n"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:" $VOLUME USER 1> sshcom $ZSTCF\n"})}),"\n",(0,o.jsxs)(t.ol,{start:"2",children:["\n",(0,o.jsx)(t.li,{children:"Switch to client mode."}),"\n"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:" % mode client\n mode client\n OK, switched to client mode\n"})}),"\n",(0,o.jsxs)(t.ol,{start:"3",children:["\n",(0,o.jsx)(t.li,{children:"Generate key with a key name i.e mykey, and add a comment for the key generated
1with your email id."}),"\n"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:' % GENERATE KEY mykey,TYPE ECDSA, BITS 521, COMMENT "[email protected]"\n OK, key user:mykey successfully generated\n'})}),"\n",(0,o.jsxs)(t.ol,{start:"4",children:["\n",(0,o.jsx)(t.li,{children:"Export mykey into the OpenSSH format, store into a volume and exit."}),"\n"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:" % EXPORT KEY mykey, FORMAT OPENSSH, FILE $volume.USER.pubkey\n OK, key user:mykey exported\n % exit\n"})}),"\n",(0,o.jsx)(t.h2,{id:"2-retrieving-the-key-from-guardian",children:"2. Retrieving the Key from Guardian"}),"\n",(0,o.jsxs)(t.ol,{children:["\n",(0,o.jsx)(t.li,{children:"Using Guardian, go to the volume where the key is stored in and copy the key into the command line."}),"\n"]}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:" $VOLUME USER 2> volume $volume.USER\n $VOLUME USER 3> fup copy pubkey,,recin 521, recout 521, fold\n"})}),"\n",(0,o.jsx)(t.h2,{id:"3-dropping-the-key-onto-the-cloud-repository",children:"3. Dropping the key onto the cloud repository"}),"\n",(0,o.jsxs)(t.p,{children:["Here are the tutorial links for ",(0,o.jsx)(t.strong,{children:(0,o.jsx)(t.a,{href:"https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/",children:"Bitbucket"})})," and for ",(0,o.jsx)(t.strong,{children:(0,o.jsx)(t.a,{href:"https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account",children:"GitHub"})}),"."]}),"\n",(0,o.jsx)(t.h2,{id:"4-adding-the-host-onto-the-nonstop",children:"4. Adding the Host onto the NonStop"}),"\n",(0,o.jsxs)(t.p,{children:["Log into OSS and add the repository url into volume, ",(0,o.jsx)(t.strong,{children:"$ZSTCF"}),", and add host onto store (yes/no)."]}),"\n",(0,o.jsx)(t.h3,{id:"bitbucket",children:"Bitbucket"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:" /home/usr: /G/system/zssh/sshoss -T -S \\$ZSTCF [email protected]\n"})}),"\n",(0,o.jsx)(t.h3,{id:"github",children:"GitHub"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:" /home/usr: /G/system/zssh/sshoss -T -S \\$ZSTCF [email protected]\n"})}),"\n",(0,o.jsx)(t.h1,{id:"errors-with-your-keys",children:"Errors with your keys?"}),"\n",(0,o.jsx)(t.h2,{id:"deleting-nonstop-generated-key-on-nonstop",children:"Deleting NonStop Generated Key on NonStop"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{children:" $VOLUME USER 1> sshcom $ZSTCF\n % mode client\n mode client\n OK, switched to client mode\n\n % info knownhost *: *\n % delete knownhost [knownby]:[knownhost]\n"})}),"\n",(0,o.jsx)(t.p,{children:"Congratulations! You now have a git repository on your NonStop, ready for development and your git workflows!"}),"\n",(0,o.jsx)(t.p,{children:"Happy development!"})]})}function a(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(c,{...e})}):c(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>s,x:()=>d});var o=n(6540);const i={},r=o.createContext(i);function s(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.