{{ craft.git.branch }}
>> current branch, i.e: stage
{{ craft.git.remoteUrl }}
>> i.e: github.com:leowebguy/git-info.git
{{ craft.git.lastTag }}
>> i.e: 3.1.2
{{ craft.git.commitHash }}
>> last commit hash
{{ craft.git.commitAuthor }}
>> last commit author (name)
{{ craft.git.commitDate }}
>> last commit date
{% if not g.isprod %}
<div style="position: fixed; bottom: 1rem; right: 1rem; padding: 6px 10px; text-align: right; border: solid 1px #eee; z-index: 999;">
{{ 'branch: ' ~ craft.git.branch }}<br>
{{ 'remote url: ' ~ craft.git.remoteUrl }}<br>
{{ 'last tag: ' ~ craft.git.lastTag }}<br>
{{ 'commit hash: ' ~ craft.git.commitHash }}<br>
{{ 'commit author: ' ~ craft.git.commitAuthor }}<br>
{{ 'commit date: ' ~ craft.git.commitDate }}
</div>
{% endif %}
Installation Instructions
To install this plugin, copy the command above to your terminal.
Reviews
This plugin doesn't have any reviews.
Active Installs
6
License
MIT
Last release
March 27, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs