{
    "url": "https://delaparra-services.nl/knowledge-hub/git-init",
    "locale": "en",
    "title": "git init: Knowledge hub | DeLaParra Services",
    "description": "Create a new, empty Git repository in the current folder.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/git-init",
        "nl": "https://delaparra-services.nl/nl/kennisbank/git-init"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/git-init.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/git-init.md",
        "json": "https://delaparra-services.nl/knowledge-hub/git-init.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/git-init.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/git-init.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/git-init.csv",
            "encodingFormat": "text/csv",
            "name": "git-init.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/git-init.json",
            "encodingFormat": "application/json",
            "name": "git-init.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/git-init.md",
            "encodingFormat": "text/markdown",
            "name": "git-init.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/git-init.pdf",
            "encodingFormat": "application/pdf",
            "name": "git-init.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/git-init.zip",
            "encodingFormat": "application/zip",
            "name": "git-init.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/git-init/skills.zip",
            "encodingFormat": "application/zip",
            "name": "git-init-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [git init](<https://delaparra-services.nl/knowledge-hub/git-init>)\n\n  \n\nCategory: Git commands \n\n# git init\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is git init?\n\n \n\ngit init: Create a new, empty Git repository in the current folder. ` git init ` creates a new, empty Git repository in the current folder. It adds a hidden ` .git ` folder where Git stores all history and configuration. From then on, Git can track changes in that folder. Typical next steps are adding a ` .gitignore `, making a first commit and connecting a remote with ` git remote add origin <url> `.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about git init\n\n  \n\n### What should you keep in mind with git init?\n\n \n\nWrite the ` .gitignore ` before the first commit. Folders like ` vendor ` and ` node_modules `, build output, log files and especially ` .env ` files with secrets should never enter history. Removing a file from a later commit does not remove it from earlier ones, so a committed secret stays in the history until the history itself is rewritten. Most frameworks provide a good starting ` .gitignore `.\n\n \n\n## At a glance\n\n   CategoryGit commands Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Git commands terms\n\n \n\n- [git config](<https://delaparra-services.nl/knowledge-hub/git-config>) \n- [git diff](<https://delaparra-services.nl/knowledge-hub/git-diff>) \n- [git fetch](<https://delaparra-services.nl/knowledge-hub/git-fetch>) \n- [git log](<https://delaparra-services.nl/knowledge-hub/git-log>) \n- [git merge](<https://delaparra-services.nl/knowledge-hub/git-merge>) \n- [git pull](<https://delaparra-services.nl/knowledge-hub/git-pull>)\n\n \n\n[All terms starting with G](<https://delaparra-services.nl/knowledge-hub#letter-g>)\n\n \n\n## Skills\n\n \n\n- ### Git Advanced Workflows\n\n \n\nMaster advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.\n\n [View skill](<https://delaparra-services.nl/skills/git-advanced-workflows>) [Download zip](<https://delaparra-services.nl/skills/git-advanced-workflows/download>) \n- ### Finishing a Development Branch\n\n \n\nUse when implementation is complete, all tests pass, and you need to decide how to integrate the work\n\n [View skill](<https://delaparra-services.nl/skills/finishing-a-development-branch>) [Download zip](<https://delaparra-services.nl/skills/finishing-a-development-branch/download>) \n- ### Conventional Commit\n\n \n\n'Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.'\n\n [View skill](<https://delaparra-services.nl/skills/conventional-commit>) [Download zip](<https://delaparra-services.nl/skills/conventional-commit/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/git-init/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Working with Git](<https://delaparra-services.nl/manuals/werken-met-git>) \n- [Setting up GitHub for your app](<https://delaparra-services.nl/manuals/github-instellen-voor-je-app>)\n\n \n\n## Related services\n\n \n\n- [AI code review](<https://delaparra-services.nl/services#service-05>)\n\nWhen you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment. \n- [Your own coding agent](<https://delaparra-services.nl/services#service-06>)\n\nIf you want to use a coding agent, we provide all the infrastructure to help it work efficiently.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/git-init)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/git-init#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/git-init",
                "name": "git init: Knowledge hub | DeLaParra Services",
                "description": "Create a new, empty Git repository in the current folder.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/git-init#term",
                    "name": "git init",
                    "description": "Create a new, empty Git repository in the current folder.",
                    "termCode": "git-init",
                    "url": "https://delaparra-services.nl/knowledge-hub/git-init",
                    "inLanguage": "en",
                    "keywords": "Git commands",
                    "dateModified": "2026-11-25T17:46:27+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/git-init#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/git-init#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/git-init#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is git init?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Create a new, empty Git repository in the current folder. git init creates a new, empty Git repository in the current folder. It adds a hidden .git folder where Git stores all history and configuration. From then on, Git can track changes in that folder. Typical next steps are adding a .gitignore, making a first commit and connecting a remote with git remote add origin <url>."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with git init?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Write the .gitignore before the first commit. Folders like vendor and node_modules, build output, log files and especially .env files with secrets should never enter history. Removing a file from a later commit does not remove it from earlier ones, so a committed secret stays in the history until the history itself is rewritten. Most frameworks provide a good starting .gitignore."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/git-advanced-workflows#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/finishing-a-development-branch#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/conventional-commit#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/werken-met-git#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/github-instellen-voor-je-app#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/git-init#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "git init"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/git-init#dataset",
                "name": "git init",
                "description": "Create a new, empty Git repository in the current folder.",
                "url": "https://delaparra-services.nl/knowledge-hub/git-init",
                "identifier": "https://delaparra-services.nl/knowledge-hub/git-init#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/git-init#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Git commands",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:27+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "git-init.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/git-init.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "git-init.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/git-init.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "git-init.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/git-init.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "git-init.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/git-init.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "git-init.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/git-init.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "git-init-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/git-init/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:27+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}