My Resources

Some useful resources I use.

Java

  • `` - Create a new project.
  • mkdocs serve - Start the live-reloading docs server.
  • mkdocs build - Build the documentation site.
  • mkdocs -h - Print help message and exit.

Git

Sort branches by commits:

Here is a simple command that lists all branches with latest commits:

  git branch -v

To order by most recent commit, use

git branch -v --sort=committerdate
git for-each-ref --sort=-committerdate refs/heads/

Or using git branch (since version 2.7.0)

git branch --sort=-committerdate  # DESC
git branch --sort=committerdate  # ASC