git - Get current version of repository -
i'm new git, can't find out how :
- get version of repository (folder offline)
- get last version of repository (online)
i can compare two, doesn't give me information version. : git status
, tell me it's date.
how can have :
your version : 1.9.0 latest version : 1.10.1
with conky
example : https://github.com/brndnmtthws/conky
there's no clean way this, since "current" version of repository means different things different people. depends on whether or not tags used.
in scenario, if want rely exclusively on tags, can use git tag -l
listing of tags, recent 1 created being last entry.
if want committed work, you'd have @ branches of own volition , inspect when committed. in case, it's master, you'd need perform log on it.
git checkout master && git log
Comments
Post a Comment