Git Extras

Git Extras

Git Commands you should keep bookmarked

Git is a powerful version control system that offers a wide range of functionality beyond the basic commands. Git Extras is a collection of additional commands that provide additional functionality and make working with Git even more efficient.

These commands and many more can be easily installed by using git extras package manager and make your git experience much more powerful and efficient.

Here are some of the most useful Git Extras commands which I often use.

git alias

This command will show all aliases if no argument is given. To set an alias:

$ git alias last "cat-file commit HEAD"

🔎 More Info

git authors

Creates a file in the root with the authors/contributors of the current repository.

$ git author

Options:

Show authors:

-l, --list

Don't show authors´ email:

--no-email

🔎 More Info

git browse

Open the current git repository website in your default web browser.

$ git browse

Options:

The name of the remote you wish to browse to. Defaults to the first remote if not specified.

<remote_name>

🔎 More Info

git brv

Pretty listing of branches sorted by the date of their last commit.

$ git brv

🔎 More Info

git changelog

Generate a changelog report for your current repository

$ git changelog

Options:

The name of the output file. By default, the new file will be History.md unless an existing

changelog is detected in which case the existing file will be updated.

-a, --all

Show commits in list format (without titles, or dates).

-l, --list

🔎 More Info

git count

Show commit count.

$ git count

Options

Show commit count details.

--all

🔎 More Info

git standup

Recall what you did on the last working day ..or be nosy and find what someone else did.

$ git standup

Options:

The author of commits. Using "all" means specifying "all authors". Defaults to $(git config user.name).

-a author

The depth of recursive directory search. Defaults to 1.

-m depth

🔎 More Info

git delta

Lists all files that differ from a branch. By default, lists files that have been added, copied, or modified as compared to the master branch.

$ git delta master MR

There are a lot more commands to explore that can be very useful. You can find them all here.