pradeepradyumna
pradeepradyumna

Reputation: 1072

git command to check if a repository has any uncommitted changes

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

Upvotes: 6

Views: 8162

Answers (4)

devatherock
devatherock

Reputation: 4921

To show uncommitted changes in files that are already part of the index as well as in untracked files, use git status -s

Upvotes: 0

Igneous
Igneous

Reputation: 118

You might as well use gitk - The Git repository browser

Upvotes: -1

rks
rks

Reputation: 622

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

git status -suno

Upvotes: 12

RajkumarGanesan
RajkumarGanesan

Reputation: 19

http://supercollider.sourceforge.net/wiki/index.php/Developer_cheatsheet_for_git

refer this link for git commands.

show uncommited local changes:

 git diff [file]

Upvotes: 0

Related Questions