From bfdf2194d8c289308288cc49f887b838aba93fd5 Mon Sep 17 00:00:00 2001 From: Alexis Hovorka Date: Thu, 29 Oct 2020 14:19:23 -0600 Subject: [feat] Add git rpush alias to simplify pushing new repos --- base/gitconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'base') diff --git a/base/gitconfig b/base/gitconfig index fb7a2df..ac04079 100644 --- a/base/gitconfig +++ b/base/gitconfig @@ -62,6 +62,7 @@ cloner = clone --recursive rv = remote -v ssh = "!ssh git.ahov.co" + rpush = "!f() { git remote add origin $*; git push -u origin main; }; f" h = "!f() { git log $* | grep '^commit ' | cut -d' ' -f2; }; f" # Return a list of commit SHA1s details = log -n1 -p --format=fuller # View the log and diff for a commit (previous if no SHA1 provided) -- cgit v1.2.3-70-g09d2