Giter Site home page Giter Site logo

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])

Git Alias's Projects

gitalias icon gitalias

Git alias commands for faster easier version control

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.