Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Introduction to Git GitHub and Other Remote Repositories Adding Remotes

Stefan Cutajar
Stefan Cutajar
7,747 Points

Why I'm not getting any response for git diff command?

Hi, I'm following jay and I got no response when typed git diff it looks like I just hit enter. Any idea what can bbe wrong please?

3 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

This would ordinarily only happen if there were no differences between the files in the working directory and those in the staging area.

When I run git diff at https://teamtreehouse.com/library/adding-remotes?t=10 , the only reason changes are shown is that before recording the video, I went in and added several lines to the medals.html file. If you want the same result, you can open medals.html, add several lines of code (any code you like, it doesn't have to match the video), and save the file. Then your changes should appear when you run git diff.

Stefan Cutajar
Stefan Cutajar
7,747 Points

Sorry about that I think I accidentally hit enter twice

Steven Parker
Steven Parker
231,172 Points

Perhaps, but either way it looks like you've discovered a forum bug. This same question comes up for this URL and for this other one.

Stefan Cutajar
Stefan Cutajar
7,747 Points

My question is still not answered

Stefan Cutajar you must add a line in medals.html for you to see changes with git diff