git status typo: what does the extra space do? -
i typed
git status - uno and got response
# on branch xyz_xyz nothing commit (working directory clean) i knew had made changes, wasn't right. saw typo... meant type
git status -uno which gives correct response:
# on branch xyz_xyz # changes not staged commit: # (use "git add <file>..." update committed) # (use "git checkout -- <file>..." discard changes in working directory) # # modified: abcd/xyz.cpp # ... # (note: git status -uno typically slow on system, in typo case response instant.)
what status git checking when typed first command?
git status - uno alternative spelling of git status -- uno, can spelled git status uno. of these commands check status of uno path in repository. since 1 doesn't exist, git status quick in telling there nothing commit.
git commands accept optional pathspecs use -- separator disambiguate between pathspecs , arguments precede them, such options , branch/commit names. use of - , -- separator decades-old unix convention, invented enable specifying arguments start -.
Comments
Post a Comment