git add
git add is a Linux command in the Git category, rated advanced difficulty. Stages changes for the next commit. The syntax is git add [options] [file]. Key options and parameters: file — file(s) to stage. It returns staged changes. A close relative is git init, which creates a new Git repository in the specified directory. A close relative is git clone, which clones an existing Git repository from a remote URL. 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 init, git clone, 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.