The most advanced commands are towards the tail of [WayBack] The most useful git commands | orga.cat
Here there are some examples of git commands that I use often.
They include:
Get the git root directory
git rev-parse --show-toplevelSource: http://stackoverflow.com/q/957928/1391963
See closest tags
git describe --tags `git rev-list --tags --max-count=1`Source: http://stackoverflow.com/q/1404796/1391963. See also git-describe.
See recently used branches (i.e. branches ordered by most recent commit)
git for-each-ref --sort=-committerdate refs/heads/ | head
Which means I need to look into at least these:
- [WayBack] Git – git-rev-parse Documentation
- [WayBack] Git – git-for-each-ref Documentation
- [WayBack] Git – git-describe Documentation
- [WayBack] Git – git-rev-list Documentation
–jeroen