Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6356663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:00:37+00:00 2026-05-24T23:00:37+00:00

I am under Windows and using GIT strictly locally, as a backup system. I

  • 0

I am under Windows and using GIT strictly locally, as a backup system.

I have my whole Eclipse workspace in it.

Searching on the net, I find that I need to do this:

Display changes since last commit:
$ git diff HEAD

I am trying to understand what precisely some maven plugin goal is doing. So I commit all my changes. Then I run the maven command. Then I go in the project directory, which is under the workspace directory, and run

git diff HEAD

It then shows me changes for the whole workspace, when in fact nothing has changed except in this directory. If I redirect it to a file, the file is 157M big!

But if I go one directory up, back in the workspace, and do the same, then it only shows me the change in the project directory. Which is what I would expect.

So my questions are:

1) Why, if I go in a sub-directory, it shows me changes that happened in the parent directory?

2) When there really is only that one change, where does it get the 157M of changes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:00:38+00:00Added an answer on May 24, 2026 at 11:00 pm

    Calling git diff without a path argument anywhere inside a git repository will show you the differences for the whole repository, not just the current directory (this is different than Subversion’s behavior).

    If you’re getting different output from git diff HEAD in different directories, it means that you’re moving to a different repository (or you’re not actually running the exact same command).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working under windows using the tortoise client and have made lots of
I wan to place a VB.NET project under Git control in Windows (was previously
I have a running CakePHP 1.3 site under Windows using ZendServer CE. I have
I have an ASP.NET app using Windows authentication, and I'm testing for the existence
Using 1.4.1 against Android under Windows 7. I have a web service being access
I am creating screenshots under Windows and using the LockBits function from GDI+ to
When obtaining the DPI for the screen under Windows (by using ::GetDeviceCaps) will the
Under Windows XP WPF true 3D content (which is usually displayed using the Viewport3D
Can I get a threads suspend count under Windows CE, using C or Visual
I'm using wxWidgets 2.8.9, built with the default settings under Windows XP, VC9. And

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.