What does git init do?

Git Easy

Git — Easy

What does git init do?

Key points

  • `git init` is a local operation, not a remote one
  • It creates a .git folder to store repository data
  • This command is used for new repositories, not existing ones
  • It does not automatically connect to a remote origin

Ready to go further?

Related questions