DEV Community

Muhammad
Muhammad

Posted on

1

What is the difference between git commit -m and git commit -am?

With git commit -m you only commit changes which are added using git add command.

With git commit -am you commit ALL changed including those changes as well which are not added ussing git add

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs