Get Git commit information in your React App
https://www.npmjs.com/package/react-git-info/v/2.0.1
HEAD
is present in the repository (https://github.com/AbhyudayaSharma/react-git-info/pull/23) - Thanks @vasiliy0shttps://www.npmjs.com/package/react-git-info/v/2.0.0
GitInfo().branch
is now undefined
when in a detached HEAD statehttps://www.npmjs.com/package/react-git-info/v/1.1.0
HEAD
are now available under tags
property (#3) - Thanks @jfemia !https://www.npmjs.com/package/react-git-info/v/1.0.1
git branch --show-current
to get the current branch. Instead use git rev-parse --abbrev-ref HEAD
increasing compatibility with older git versions (#2).