Command
Git Initialize Repository Command
The Git command to initialize repository is git init.
Quick Answer
- Command
git init
GitCommand
Initialize Repository
Type this command
git init
Creates a new Git repository in the current folder.
How to initialize repository in Git
- Open the terminal or command interface for Git.
- Type git init, replace any placeholders, and run it.
Git Initialize Repository Command
Run git init.
Frequently asked questions
What is the Git command to initialize repository?
Run git init.
Where do I type this Git command?
Type it in the terminal or command-line interface used by Git.
Does this Git command work on Mac and Windows?
Yes. The command text is the same on both platforms when the tool is installed.
Official source · How we verify