mwt
mwt

Reputation: 669

git checkout: what does this weird output mean?

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?

Upvotes: 54

Views: 33208

Answers (1)

user229044
user229044

Reputation: 239481

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

Upvotes: 78

Related Questions