1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [git init](<https://delaparra-services.nl/knowledge-hub/git-init>)

  

Category: Git commands 

# git init

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is git init?

 

git 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> `.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about git init

  

### What should you keep in mind with git init?

 

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 `.

 

## At a glance

   CategoryGit commands Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Git commands terms

 

- [git config](<https://delaparra-services.nl/knowledge-hub/git-config>) 
- [git diff](<https://delaparra-services.nl/knowledge-hub/git-diff>) 
- [git fetch](<https://delaparra-services.nl/knowledge-hub/git-fetch>) 
- [git log](<https://delaparra-services.nl/knowledge-hub/git-log>) 
- [git merge](<https://delaparra-services.nl/knowledge-hub/git-merge>) 
- [git pull](<https://delaparra-services.nl/knowledge-hub/git-pull>)

 

[All terms starting with G](<https://delaparra-services.nl/knowledge-hub#letter-g>)

 

## Skills

 

- ### Git Advanced Workflows

 

Master 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.

 [View skill](<https://delaparra-services.nl/skills/git-advanced-workflows>) [Download zip](<https://delaparra-services.nl/skills/git-advanced-workflows/download>) 
- ### Finishing a Development Branch

 

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

 [View skill](<https://delaparra-services.nl/skills/finishing-a-development-branch>) [Download zip](<https://delaparra-services.nl/skills/finishing-a-development-branch/download>) 
- ### Conventional Commit

 

'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.'

 [View skill](<https://delaparra-services.nl/skills/conventional-commit>) [Download zip](<https://delaparra-services.nl/skills/conventional-commit/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/git-init/skills.zip>)

 

## Manuals

 

- [Working with Git](<https://delaparra-services.nl/manuals/werken-met-git>) 
- [Setting up GitHub for your app](<https://delaparra-services.nl/manuals/github-instellen-voor-je-app>)

 

## Related services

 

- [AI code review](<https://delaparra-services.nl/services#service-05>)

When 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. 
- [Your own coding agent](<https://delaparra-services.nl/services#service-06>)

If you want to use a coding agent, we provide all the infrastructure to help it work efficiently.

 

## Need any help?

 

Stuck 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.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/git-init)
