How To Commit with Git
1 min read

Add file

You can either add single files or all files that have been modified at the same time.

# Single files
git add <filename1> <filename2>

# All files
git add .

Commit message

You always have to specify a short message for each commit.

git commit -m "This is the commit message"