git命令检查存储库是否有未提交的更改 [英] git command to check if a repository has any uncommitted changes

查看:255
本文介绍了git命令检查存储库是否有未提交的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道是否有一个git命令,通过它可以检查给定存储库的分支中是否存在未提交的更改

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

推荐答案

如果您只对索引中的文件感兴趣,则以下命令将显示简洁信息

If you are only interested in files which are part of the index, the following command shows concise info

git status -suno

这篇关于git命令检查存储库是否有未提交的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆