Git Alias

There are ways you can shorten the amount of words when executing git actions:

~/.gitconfig

inside you can add alias for commands used often.

Another way is to add the aliases globally:

git config --global alias.[your alias] "[your action]"

ex. git config --global alias.ci 'commit'

By adding these shortcuts you can decrease the amount of time needed to interact with git.

To see all your global alias you can use this command:

git config –list | grep alias

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s