Over a million developers have joined DZone.

Github : File Changes and Commit History

DZone's Guide to

Github : File Changes and Commit History

· Java Zone ·
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

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.

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat


Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}