git command to check if a repository has any uncommitted changes

∥☆過路亽.° 提交于 2019-12-13 03:14:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!