Home ›
Checking the difference between a file modified locally and the repository with gitChecking the difference between a file modified locally and the repository with git
Submitted by Benjamin Melançon on July 10, 2009 - 3:56pm
[done this before, never made a note of it]
git see difference between current and repository file
git diff
It's really that easy.
Additions in your local working copy are represented by + signs, subtractions by your local working copy are each preceded by a - sign.
http://media.pragprog.com/titles/tsgit/chap-005-extract.html
More like this
- See your git commit history with files modified
- Putting a local project maintained in git on a server as a central repository
- Resolve a conflict to use local files after a merge goes bad in git pull
- Restore locally deleted files with git
- git apply does not work from within the local checkout of an unrelated git repository

