问题
I need to know if there is a git command using which I can check if there are any uncommitted changes present in a branch for a given repository
回答1:
If you are only interested in files which are part of the index, the following command shows concise info
git status -suno
回答2:
http://supercollider.sourceforge.net/wiki/index.php/Developer_cheatsheet_for_git
refer this link for git commands.
show uncommited local changes:
git diff [file]
回答3:
You might as well use gitk - The Git repository browser
来源:https://stackoverflow.com/questions/51946332/git-command-to-check-if-a-repository-has-any-uncommitted-changes