• Stars
    star
    2,422
  • Rank 18,991 (Top 0.4 %)
  • Language
    Shell
  • Created over 8 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Git alias commands for faster easier version control

Git Alias

What is Git Alias?

Git Alias is a collection of git version control alias settings that can help you work faster and better. Git Alias provides short aliases such as s for status, command aliases such as chart and churn, lookup aliases such as whois and whatis, workflow aliases such as topic-begin for feature branch development, and more.

Setup

You can use Git Alias various ways:

Follow us

You can follow us on GitHub:

Short aliases

Short aliases are for frequent commands and options:

git add:

git branch:

git commit:

git checkout:

git cherry-pick:

  • git cp = cherry-pick
  • git cpa = cherry-pick --abort
  • git cpc = cherry-pick --continue
  • git cpn = cherry-pick -n (--no-commit)
  • git cpnx = cherry-pick -n -x (--no-commit and with a message)

git diff:

git fetch:

git grep:

  • git g = grep
  • git gg = grep with our preferred settings
  • git gn = grep -n (--line-number)

git log:

git ls-files:

git merge:

git pull:

git rebase:

git reflog:

git remote:

git revert:

git show-branch:

git submodule:

git status:

git whatchanged:

Friendly aliases

Recommended helpers:

  • git initer - Initialize a repo using our recommended way i.e. with an empty rebaseable commit
  • git cloner - Clone a repo using our recommended way i.e. recursive include of submodules
  • git pruner - Prune a repo using our recommended way i.e. prune everything unreachable now
  • git repacker - Repack a repo our recommended way i.e. as Linus Torvalds describes
  • git optimizer - Optimize a repo using our recommended way i.e. by pruning and repacking

Quick highlights:

  • git chart - Show highlights chart of activity per author
  • git churn - Show log of files that have many changes
  • git summary - Show a summary of overview metrics

Branch names:

Branch commits:

Friendly plurals:

Undo:

Logging & reporting:

Lookups:

  • git whois - Try to figure out an author's information
  • git whatis - Try to figure out an object's information

Commit details:

Add all & edit all:

Alias helpers:

Script helpers:

  • git top - Get the top level directory name
  • git exec - Execute a shell script

Remotes:

New repos:

Hew branches:

Saving work:

  • git archive - Create an archive file of everything in the repo
  • git snapshot - Stash a snapshot of your current working tree
  • git panic - When you're worried the world is coming to an end

Misc:

Advanced aliases:

Workflow aliases

Topic branching for feature workflows:

Flow aliases:

reset & undo:

  • git reset-* - Move backwards on the commit chain; synonym for undo-*
  • git undo-* - Move backwards on the commit chain; synonym for reset-*

track & untrack:

  • git track - Start tracking from a local branch to upstream branch
  • git untrack - Stop tracking from a local branch to upstream branch

inbound & outbound:

  • git inbound - Show incoming changes compared to upstream
  • git outbound - Show outgoing changes compared to upstream

pull1 & push1:

Misc:

Tooling aliases

Use gitk:

Use other version control systems:

Use graphviz:

Index of all aliases

Tracking

  • Package: gitalias
  • Version: 28.0.1
  • Created: 2016-06-17T22:05:43Z
  • Updated: 2023-05-31T11:39:14Z
  • License: GPL-2.0-or-later or contact us for custom license
  • Contact: Joel Parker Henderson ([email protected])