Git view changes-How to show uncommitted changes in Git

493    Asked by Aashishchaursiya in Java , Asked on Jun 22, 2021

How do I show uncommitted changes in Git?

I SFTW'ed, and those commands do not work.

Bhamra@Bhamra-THINK MINGW64 /d/nano/repos/PSTools/psservice (bhamra/psservice)
$ git status
On branch bhamra/psservice
Your branch is up-to-date with 'origin/bhamra/psservice'.
Changes to be committed:
  (use "git reset HEAD ..." to unstage)
        modified:   psservice.c
        modified:   psservice.vcxproj.filters
bhamra@bhamra-THINK MINGW64 /d/nano/repos/PSTools/psservice (bhamra/psservice)
$ git diff
bhamra@BHAMRA-THINK MINGW64 /d/nano/repos/PSTools/psservice (bhamra/psservice)
$ git diff master
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

Answered by Abhinav Pillai

Your Answer

Interviews

Parent Categories