假设我有:
git fetch origin
git status "remotes/origin/master"
我不确定是否可以检查我没有检出的分支的状态,所以假设我像这样检出一个分支:
git branch foo "remotes/origin/master"
git checkout foo
git status
我的问题有两个方面:
- 我能否在不检查它的情况下获取分支的git状态?
- foo的git状态是否会是“不干净”的?我认为foo的git状态总是“干净的”并且“与远程保持最新”。
git remote show origin
是什么意思?git remote show origin
doesn't seem to include the same info asgit status
- Alexander Millsgit status
的原因。) - bishop