Haanji! Swagat hai Chai aur Docs mein. 🎉This guide has been carefully curated as a comprehensive reference for the “Chai aur Git” series on the Chai aur Code YouTube channel. For the best learning experience, we recommend following these docs alongside our video tutorials.
Let’s begin with the basics in the next section…
Continue to Introduction
Start learning Git and GitHub fundamentals
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"ChaiDocs","colors":{"primary":"#C45F15","light":"#E67E22","dark":"#8B4513"},"logo":{"light":"https://mintcdn.com/chaicode-1931df7f/AkNl1GGCF4ImbLdv/logo/chaicode-black.png?fit=max\u0026auto=format\u0026n=AkNl1GGCF4ImbLdv\u0026q=85\u0026s=ae1d87640dcbe6ac05b7f6a73a7a3aec","dark":"https://mintcdn.com/chaicode-1931df7f/AkNl1GGCF4ImbLdv/logo/chaicode-white.png?fit=max\u0026auto=format\u0026n=AkNl1GGCF4ImbLdv\u0026q=85\u0026s=2ecd4487c721dcffcec8297074124cb4"},"favicon":"/logo/cup-logo.png","navbar":{"links":[{"label":"YouTube","href":"https://www.youtube.com/@chaiaurcode"}],"primary":{"type":"button","label":"Udemy Courses","href":"https://www.udemy.com/user/hitesh-choudharycom/"}},"footer":{"socials":{"x":"https://x.com/Hiteshdotcom","github":"https://github.com/hiteshchoudhary","youtube":"https://www.youtube.com/@chaiaurcode","linkedin":"https://linkedin.com/in/hiteshchoudhary"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"]},"navigation":{"global":{"anchors":[{"anchor":"YouTube Channel","icon":"youtube","href":"https://www.youtube.com/@chaiaurcode"},{"anchor":"Udemy Courses","icon":"graduation-cap","href":"https://www.udemy.com/user/hitesh-choudharycom/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"chaicode-1931df7f","hasAudioNarration":false,"actualSubdomain":"chaicode-1931df7f","customDomains":["notes.chaicode.com"],"gitSource":{"type":"github","owner":"hiteshchoudhary","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae940c15a02d049c11c3b35:success","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Guides","count":20},{"language":"default","tag":"Chai aur DevOps","count":9},{"language":"default","tag":"Chai aur Git","count":8},{"language":"default","tag":"API reference","count":5},{"language":"default","tag":"Endpoint examples","count":4},{"language":"default","tag":"Getting started","count":3},{"language":"default","tag":"Tech Shots","count":2},{"language":"default","tag":"Quick Guides","count":2},{"language":"default","tag":"API documentation","count":1}]},"assistantConfig":{"enableStarterQuestions":false},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"git/welcome","slug":"/git/welcome","pageMetadata":{"title":"Welcome","description":"Welcome to the Chai aur Git Series","href":"/git/welcome"},"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: \"Welcome to the Chai aur Git Series\"\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={a:`a`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Card,OptimizedFrame}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!OptimizedFrame)_missingMdxReference(`OptimizedFrame`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Haanji! Swagat hai `,_jsx(_components.strong,{children:`Chai aur Docs`}),` mein. 🎉`]}),`\n`,_jsxs(_components.p,{children:[`This guide has been carefully curated as a comprehensive reference for the “`,_jsx(_components.strong,{children:`Chai aur Git`}),`” series on the `,_jsx(_components.a,{href:`https://www.youtube.com/@chaiaurcode`,children:`Chai aur Code`}),` YouTube channel. For the best learning experience, we recommend following these docs alongside our video tutorials.`]}),`\n`,_jsx(OptimizedFrame,{width:`100%`,height:`400`,src:`https://www.youtube.com/embed/q8EevlEpQ2A`,title:`Chai aur Git`,frameborder:`0`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,allowfullscreen:true}),`\n`,_jsx(_components.p,{children:`Let’s begin with the basics in the next section…`}),`\n`,_jsx(Card,{title:`Continue to Introduction`,icon:`arrow-right`,href:`/git/introduction`,children:_jsx(_components.p,{children:`Start learning Git and GitHub fundamentals`})})]})}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":"Welcome","description":"Welcome to the Chai aur Git Series","href":"/git/welcome"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"chaicode-1931df7f","siteName":"ChaiDocs","title":"Welcome - ChaiDocs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"git/welcome.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=\"Welcome to the Chai aur Git Series\">\u003cmeta data-mint-head name=\"application-name\" content=\"ChaiDocs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_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/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_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/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_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/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_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/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_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/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_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/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_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/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Welcome - ChaiDocs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Welcome to the Chai aur Git Series\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ChaiDocs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://notes.chaicode.com/git/welcome\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://chaicode-1931df7f.mintlify.site/_mintlify/api/og/v2?division=Chai+aur+Git\u0026amp;title=Welcome\u0026amp;description=Welcome+to+the+Chai+aur+Git+Series\u0026amp;theme=473f7c55c3ef4d84cd8fa961\u0026amp;signature=97099a8dcce193f2c4531222481b940f342952f3a6871a0e9a1099e618794b7f\">\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=\"Welcome - ChaiDocs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Welcome to the Chai aur Git Series\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://chaicode-1931df7f.mintlify.site/_mintlify/api/og/v2?division=Chai+aur+Git\u0026amp;title=Welcome\u0026amp;description=Welcome+to+the+Chai+aur+Git+Series\u0026amp;theme=473f7c55c3ef4d84cd8fa961\u0026amp;signature=97099a8dcce193f2c4531222481b940f342952f3a6871a0e9a1099e618794b7f\">\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/chaicode-1931df7f/zOkCVOZh5a_mm1Xl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ChaiDocs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C45F15\">\u003clink data-mint-head rel=\"canonical\" href=\"https://notes.chaicode.com/git/welcome\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/git/welcome.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://notes.chaicode.com/#organization\",\"name\":\"ChaiDocs\",\"url\":\"https://notes.chaicode.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/chaicode-1931df7f/AkNl1GGCF4ImbLdv/logo/chaicode-black.png?fit=max\u0026auto=format\u0026n=AkNl1GGCF4ImbLdv\u0026q=85\u0026s=ae1d87640dcbe6ac05b7f6a73a7a3aec\"}},{\"@type\":\"WebSite\",\"@id\":\"https://notes.chaicode.com#website\",\"name\":\"ChaiDocs\",\"url\":\"https://notes.chaicode.com\",\"publisher\":{\"@id\":\"https://notes.chaicode.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://notes.chaicode.com/git/welcome#webpage\",\"url\":\"https://notes.chaicode.com/git/welcome\",\"name\":\"Welcome\",\"description\":\"Welcome to the Chai aur Git Series\",\"isPartOf\":{\"@id\":\"https://notes.chaicode.com#website\"},\"breadcrumb\":{\"@id\":\"https://notes.chaicode.com/git/welcome#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://notes.chaicode.com/git/welcome#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"ChaiDocs\",\"item\":\"https://notes.chaicode.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Welcome\",\"item\":\"https://notes.chaicode.com/git/welcome\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://notes.chaicode.com/git/welcome#article\",\"headline\":\"Welcome\",\"name\":\"Welcome\",\"description\":\"Welcome to the Chai aur Git Series\",\"url\":\"https://notes.chaicode.com/git/welcome\",\"mainEntityOfPage\":{\"@id\":\"https://notes.chaicode.com/git/welcome#webpage\"},\"publisher\":{\"@id\":\"https://notes.chaicode.com/#organization\"},\"isPartOf\":{\"@id\":\"https://notes.chaicode.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ChaiDocs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ChaiDocs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/git/welcome.md","siteName":"ChaiDocs","nav":{"global":{"anchors":[{"anchor":"YouTube Channel","icon":"youtube","href":"https://www.youtube.com/@chaiaurcode"},{"anchor":"Udemy Courses","icon":"graduation-cap","href":"https://www.udemy.com/user/hitesh-choudharycom/"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Getting started","pages":[{"title":"Welcome to Chai aur Code","href":""},{"title":"Quickstart","href":"/quickstart"},{"title":"Learning Resources","description":"Explore comprehensive courses by Hitesh Choudhary","href":"/learning"}]},{"group":"Chai aur Git","pages":[{"title":"Welcome","href":"/git/welcome"},{"title":"Git and GitHub","description":"Learn Git and GitHub fundamentals","href":"/git/introduction"},{"title":"Terminology","href":"/git/terminology"},{"title":"Git behind the scenes","href":"/git/behind-the-scenes"},{"title":"Branches in Git","href":"/git/branches"},{"title":"Diff, Stash and Tags","href":"/git/diff-stash-tags"},{"title":"Managing History","href":"/git/managing-history"},{"title":"Collaborate with GitHub","href":"/git/github"}]},{"group":"Chai aur DevOps","pages":[{"title":"Welcome","href":"/devops/welcome"},{"title":"Setting up VPC for deployment","href":"/devops/setup-vpc"},{"title":"Nginx Configuration on VPS","href":"/devops/setup-nginx"},{"title":"Nginx Rate Limit","href":"/devops/nginx-rate-limiting"},{"title":"Setup SSL for Nginx","href":"/devops/nginx-ssl-setup"},{"title":"Deploy Node API with Nginx","href":"/devops/node-nginx-vps"},{"title":"Setting Up PostgreSQL with Docker","href":"/devops/postgresql-docker"},{"title":"Setting Up PostgreSQL On VPS","href":"/devops/postgresql-vps"},{"title":"Advanced Node.js Logging","href":"/devops/node-logger"}]}]},{"tab":"Tech Shots","pages":[{"title":"Tech Shots","href":"/tech-shots/yaml-complete"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Welcome - ChaiDocs","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}