git init
git init is a Linux command in the Git category, rated advanced difficulty. Creates a new Git repository in the specified directory. The syntax is git init [directory]. Key options and parameters: directory — (optional) target directory. It returns initialized git repository. A close relative is git clone, which clones an existing Git repository from a remote URL. A close relative is git add, which stages changes for the next commit. A close relative is git commit, which records staged changes to the repository history. More about this category: Git version control commands — git init, clone, add, commit, push, pull, and more. Manage source code repositories. Related Git commands: git clone, git add, git commit, git push, git pull, git status, git log, git diff. This page is part of the free Linux Reference documentation covering 304+ commands, each with syntax, options, practical examples, and a difficulty rating.