-
Clone this repository to the
~/
cd ~ && git clone https://github.com/ariarzer/my-git-alias.git .gitalias
-
Add this fragment to the
.gitconfig
file+ [includeIf "gitdir:~/"] + path = ~/.gitalias/root
-
add-global-alias
Creates global alias...
~ └─ gitalias + └─ <name> + ├─ <name> + └─ <name>.sh
...and includes them to
root
file.+[includeIf "gitdir:~/"] + path = ~/.gitalias/<name>/<name>
Arguments:
name
- name of the global alias