git checkout: what does this weird output mean?

Git

Git Problem Overview


When I checkout, I get:

me@localhost# git checkout master
D    deps/example
M    deps/example2
Switched to branch "master"

The man page doesn't mention this cryptic output. What does it mean?

Git Solutions


Solution 1 - Git

That's the output of git status; git is showing you that after checking out master there are still uncommited changes to your working copy (one modified file and one deleted file).

Check man git-status:

M = modified
A = added
D = deleted
R = renamed
C = copied
U = updated but unmerged

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionmwtView Question on Stackoverflow
Solution 1 - Gituser229044View Answer on Stackoverflow