Git Init The git init command is used to initialize a new Git repository. Usage git init Explanation Creates a new .git directory in your project. Sets up the necessary Git files and structures. Example mkdir my-project cd my-project git init