Sunday, June 1, 2014

Useful Git commands

This is not related to Oracle at all, I'm just putting this here as a reminder to myself...

git log

Show a compact list of commits for a given period, formatted nicely:

git log --since="2 weeks ago" --pretty=format:"%h - %an, %ar : %s"


Start the default graphical interface for viewing the logs/commits:


Start the graphical interface and show the history for a single file:

gitk db/src/some_file.sql

More to come...

No comments: