A concise reference for Git commands.
# Set global name
git config --global user.name "Your Name"
# Set global email
git config --global user.email "[email protected]"
# Set local name (for this repo only)
git config --local user.name "Your Name"
# Set local email (for this repo only)
git config --local user.email "[email protected]"
git init
# Clone into a new directory
git clone [url]
# Clone into the current directory
git clone [url] .
# Clone into a specific directory
git clone [url] [path-to-clone]
git status
# Stage a specific file
git add [file]
# Stage all files
git add .