aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/gitconfig1
1 files changed, 1 insertions, 0 deletions
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)