Unraveling mysteries with git diff – the tale of the unseen changes
You’re working on your one-page portfolio website and you’ve just added a new section called My PORTFOLIO. Now, you’re curious to see what changes you’ve made compared to the previous version. In the world of Git, this is where the diff
command comes into play. It’s like having a magnifying glass to spot the differences between your older website and the new one within the My PORTFOLIO section.
What is the diff command?
The diff
command in Git shows you the differences between your current code and the last committed version. It’s like comparing two photos of your room, one before and one after a redecoration, to see exactly what’s changed.
Your command line is the place where you will use the diff
command to investigate the changes on your one-page portfolio website. Make sure you’re in the directory (folder) of your website project on your computer...