Github : File Changes and Commit History

DZone 's Guide to

Github : File Changes and Commit History

· Java Zone ·
Free Resource

Most of the times, when working with Github, you will want to see the differences between the current local copy of a file and the previous commits. One of the easiest ways to see it visually would be to make use of the gitk command and give the file name as the argument. e.g.

gitk  filename
Thats all. This command would open up a neat little window and show you all the changes that were made to this file across different commit and lets you compare it with the version in your current working directory. Oh, and do remember to include the relative path before the filename. Standard convention.

Published at DZone with permission of Ryan Sukale . See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}