Aliases without having to write GIt

MaxwellLynn

As an example I use this command to write a git aliases.

git config --global alias.a add

Now this means that I have to write:

git a

Which is super annoying..

I was wondering if there is a way that I can apply this aliase globally so that I only have to write:

a

This will save me from writing git..

I thought that this would work but it doesn't.

git config --global alias.a git add

sschuberth

Use a shell alias instead, like bash aliases:

alias a="git add"

If you put that in the ~/.bashrc file, you'll automatically have the alias available in every shell instance.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Git push to corresponding branch without having to write the branch name

Having aliases active in a terminal session without using bashrc or bash_profile or bash_aliases?

Managing postgresql views without having to write migrations?

Write a sequence without having 0 at any place

Having query in SQL aliases

Check if directory is git repository (without having to cd into it)

Why does zsh allow to use combination of aliases in git without space?

How do I use git without having a proper git server?

In Java, is there a way to write a string literal without having to escape quotes?

Can we write case statement without having else statement

How to write string literals in python without having to escape them?

Using texture for triangle mesh without having to read/write an image file

Save sequence of variables into list without having to write them individually

Is it possible to name file currently represented as buffer without having write/read?

Use package on GitHub as dependency without having Git installed

git merge remote branches without having to create a local branch

Git rebase without having most recent changes in workspace

Refresh aliases without reboot?

Git aliases with conditions to apply

Creating git aliases

List Git aliases

Git completion with aliases

Intellij Idea git aliases

Problem when using HAVING with aliases in MySQL

ultimate aliases for git fails (__git_aliases command seem to be deprecated)

Sum values without aliases correctly

Creating aliases for Git branch names

git aliases operate in the wrong directory

How to deal with combinations of git aliases