allow gitcd to accept a parameter, and add completion

Thanks to Thomas Koch for the idea (not sure why I didn't think of this
myself)

http://lists.madduck.net/pipermail/vcs-home/2013-September/000882.html