To obtain the latest git repo tag issue the below command. In my case this is how we list the latest master version of what is pushed to our test server or live server.
- [web@server project]# git describe
Our format is main_version-revision-hash which will ensure that all commits are unique. You can issue the git describe from anywhere within your projects directory tree. If you issue the command outside of a git repository then you will see an output like the below when issuing the git describe command.
- [web@server ~]# git describe
- fatal: Not a git repository