Git Cheat Sheet Basic commands git init Creates a new git repository in the directory git add <file name> Adds a specific file to staging git add . or git add -A Adds the full directory and its contents to staging