Originally the songe was written by Jerry Jeff Walker, here is his version of the song:
Another great version is also performed by the Nitty Gritty Dirt Band
There is also some interesting history tied to this song by a Minstrel performer in the 1930's named Bill Robinson.
Additionally there is also a breakdown by Mo Will of the events that transpired that led to the creation of this song by Jeff Walker.