Convert Figma logo to code with AI

GitAlias logogitalias

Git alias commands for faster easier version control

2,587
344
2,587
11

Top Related Projects

181,789

🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community.

GIT utilities -- repo summary, repl, changelog population, author commit percentages and more

56,685

Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements.

168,424

A collection of useful .gitignore templates

21,631

Most commonly used git tips and tricks.

26,826

Git extensions to provide high-level repository operations for Vincent Driessen's branching model.

Quick Overview

GitAlias is a collection of Git aliases and scripts that enhance the Git command-line experience. It provides a set of shortcuts and custom commands to streamline common Git operations, making version control more efficient and user-friendly. The project aims to improve productivity for developers who frequently use Git in their workflows.

Pros

  • Extensive collection of aliases covering a wide range of Git operations
  • Improves productivity by reducing typing and simplifying complex commands
  • Well-documented with clear explanations for each alias
  • Easy to customize and extend with personal preferences

Cons

  • Learning curve for users unfamiliar with Git aliases
  • May conflict with existing personal aliases or configurations
  • Some aliases might be overly complex for simple use cases
  • Requires manual updates to stay current with new Git features

Getting Started

To get started with GitAlias:

  1. Clone the repository:

    git clone https://github.com/GitAlias/gitalias.git
    
  2. Add the aliases to your global Git configuration:

    git config --global include.path /path/to/gitalias/gitalias.txt
    
  3. Alternatively, copy the desired aliases directly into your .gitconfig file:

    cat /path/to/gitalias/gitalias.txt >> ~/.gitconfig
    
  4. Start using the aliases in your Git commands, for example:

    git s         # Short status
    git l         # Better log
    git ca        # Commit all changes
    

Remember to review the gitalias.txt file to familiarize yourself with the available aliases and their functions.

Competitor Comparisons

181,789

🙃 A delightful community-driven (with 2,400+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool that makes it easy to keep up with the latest updates from the community.

Pros of Oh My Zsh

  • Comprehensive plugin ecosystem with a wide range of functionality
  • Extensive theme collection for customizing shell appearance
  • Active community and frequent updates

Cons of Oh My Zsh

  • Can be slower to load due to its extensive feature set
  • May include unnecessary features for users who only need Git aliases
  • Requires Zsh shell, which is not the default on all systems

Code Comparison

Oh My Zsh Git plugin excerpt:

alias g='git'
alias ga='git add'
alias gaa='git add --all'
alias gapa='git add --patch'
alias gau='git add --update'

GitAlias excerpt:

[alias]
    a = add
    aa = add --all
    apa = add --patch
    au = add --update

Oh My Zsh provides shell aliases, while GitAlias defines Git-specific aliases. Oh My Zsh's approach allows for more flexibility but requires the plugin to be loaded, whereas GitAlias's method works directly with Git commands.

Oh My Zsh is a comprehensive Zsh configuration framework that includes Git aliases among many other features. GitAlias, on the other hand, focuses solely on providing an extensive collection of Git aliases. Oh My Zsh offers a more complete shell customization experience, while GitAlias is a lightweight, Git-specific solution that can be used with any shell.

GIT utilities -- repo summary, repl, changelog population, author commit percentages and more

Pros of git-extras

  • Provides a wide range of additional Git commands and utilities
  • Includes features like repo summary, author stats, and branch management
  • Offers system-wide installation for easier access across projects

Cons of git-extras

  • Requires separate installation and setup process
  • May introduce unfamiliar commands that differ from standard Git workflow
  • Some features might overlap with existing Git functionality

Code Comparison

git-extras:

git summary
git effort --above 5
git fork
git release 1.5.0

gitalias:

git overview
git effort
git hub-fork
git release 1.5.0

Key Differences

  • git-extras focuses on adding new Git commands and utilities
  • gitalias primarily provides aliases for existing Git commands
  • git-extras requires installation, while gitalias can be added to .gitconfig
  • git-extras offers more complex features like effort tracking and branch management
  • gitalias aims to simplify common Git operations with shorter, memorable aliases

Both projects enhance Git functionality, but git-extras provides a more comprehensive set of additional commands, while gitalias focuses on streamlining existing Git operations through aliases.

56,685

Git Source Code Mirror - This is a publish-only repository but pull requests can be turned into patches to the mailing list via GitGitGadget (https://gitgitgadget.github.io/). Please follow Documentation/SubmittingPatches procedure for any of your improvements.

Pros of git

  • Official Git source code repository, providing the core functionality and implementation
  • Extensive documentation and comprehensive test suite
  • Large community of contributors and maintainers

Cons of git

  • Steeper learning curve for new users and contributors
  • Larger codebase, which can be more challenging to navigate
  • Primarily focused on core Git functionality, not user-friendly aliases

Code comparison

git:

int cmd_add(int argc, const char **argv, const char *prefix)
{
    int patch = 0, update = 0, intent_to_add = 0;
    struct strbuf file_list = STRBUF_INIT;
    int add_new_files = 0, exit_status = 0;

gitalias:

alias.add-commit=!git add -A && git commit
alias.amend=commit --amend
alias.branches=branch -a
alias.remotes=remote -v
alias.contributors=shortlog -s -n --all

The git repository contains the core implementation of Git in C, while gitalias focuses on providing useful aliases and shortcuts for common Git operations using shell commands.

168,424

A collection of useful .gitignore templates

Pros of gitignore

  • Comprehensive collection of gitignore templates for various languages and frameworks
  • Officially maintained by GitHub, ensuring regular updates and community contributions
  • Widely adopted and recognized as a standard resource for gitignore files

Cons of gitignore

  • Limited to gitignore files only, not providing other Git-related functionality
  • Requires manual copying and pasting of templates into local projects
  • May include unnecessary patterns for specific use cases, requiring customization

Code comparison

gitignore:

# Node.js
node_modules/
npm-debug.log
yarn-error.log

# Python
*.py[cod]
__pycache__/

gitalias:

[alias]
    s = status -s
    cm = commit -m
    unstage = reset HEAD --

Summary

While gitignore focuses solely on providing gitignore templates for various technologies, gitalias offers a collection of Git aliases to enhance workflow efficiency. gitignore is more widely recognized and maintained by GitHub, but gitalias provides broader Git-related functionality beyond just ignore patterns. The choice between the two depends on whether you need comprehensive gitignore templates or want to streamline your Git commands with aliases.

21,631

Most commonly used git tips and tricks.

Pros of tips

  • Extensive collection of Git tips and tricks, covering a wide range of scenarios
  • Includes explanations and examples for each tip, making it easier to understand and apply
  • Regularly updated with new tips and community contributions

Cons of tips

  • Lacks a structured way to implement the tips as aliases or configurations
  • May overwhelm users with the sheer number of tips, making it harder to find specific solutions
  • Doesn't provide a ready-to-use configuration file for quick setup

Code comparison

tips:

git log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate

gitalias:

[alias]
    lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative

Both repositories offer valuable Git-related content, but they serve different purposes. tips focuses on providing a comprehensive list of Git tips and tricks, while gitalias emphasizes creating and managing Git aliases for improved workflow efficiency. Users looking for quick solutions and explanations might prefer tips, while those seeking to customize their Git experience through aliases may find gitalias more suitable.

26,826

Git extensions to provide high-level repository operations for Vincent Driessen's branching model.

Pros of gitflow

  • Provides a structured branching model for Git workflows
  • Offers a set of extension commands for high-level repository operations
  • Widely adopted and well-documented branching strategy

Cons of gitflow

  • More complex and opinionated than simple Git aliases
  • Requires installation of additional software
  • May be overkill for smaller projects or teams

Code comparison

gitflow:

git flow feature start my-feature
git flow feature finish my-feature

gitalias:

git feature start my-feature
git feature finish my-feature

Summary

gitflow is a comprehensive branching model with custom commands, while gitalias is a collection of Git aliases. gitflow provides a structured approach to managing branches and releases, but it can be more complex to set up and use. gitalias offers simpler, customizable shortcuts for common Git operations without enforcing a specific workflow.

gitflow is better suited for larger projects with complex release cycles, while gitalias is more flexible and can be easily adapted to various workflows. Both tools can improve Git productivity, but gitflow has a steeper learning curve and may require team-wide adoption to be effective.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

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.1.0
  • Created: 2016-06-17T22:05:43Z
  • Updated: 2025-02-19T01:59:02Z
  • License: GPL-2.0-or-later or contact us for custom license
  • Contact: Joel Parker Henderson (joel@joelparkerhenderson.com)