From edfb6b5512458b3ee712416fe32e308ebcfce69f Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Thu, 19 Sep 2024 12:01:44 +0200 Subject: Added more aliases --- git/.gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git/.gitconfig b/git/.gitconfig index 3e3824b..9ce6c46 100644 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -12,6 +12,8 @@ cm = commit -m ra = "!f() { read -p \"Author email: \" email; [ -n \"${email}\" ] && git config user.email ${email} && git commit --amend --reset-author; }; f" merge-to = "!f() { git checkout $1; git merge -; git checkout -; }; f" + ignore = "!gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}; gi" + merge-branch = "!f() { git checkout $1; git pull; git checkout -b merge/$1/$2; git merge $2 ;}; f" [push] default = simple [pull] -- cgit v1.2.3