Skip to content

Instantly share code, notes, and snippets.

@disassembler
Created January 3, 2019 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save disassembler/ddc467c9c828cd368df21de058084955 to your computer and use it in GitHub Desktop.
Save disassembler/ddc467c9c828cd368df21de058084955 to your computer and use it in GitHub Desktop.
git --no-pager log -1 --date=short --decorate=short --pretty=format:"\usepackage[shash={%h}\
, lhash={%H}\
, authname={%an}\
, authemail={%ae}\
, authsdate={%ad}\
, authidate={%ai}\
, authudate={%at}\
, commname={%cn}\
, commemail={%ce}\
, commsdate={%cd}\
, commidate={%ci}\
, commudate={%ct}\
, refnames={%d}\
, firsttagdescribe={}\
, reltag={}\
]{gitexinfo} " HEAD > gitHeadLocal.gin
fatal: not a git repository (or any parent up to mount point /)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment