diff options
author | Alexis Hovorka <[email protected]> | 2020-10-29 14:19:23 -0600 |
---|---|---|
committer | Alexis Hovorka <[email protected]> | 2020-10-29 14:19:23 -0600 |
commit | bfdf2194d8c289308288cc49f887b838aba93fd5 (patch) | |
tree | dd6cb86266ec39c655743f85241a8ce82e7faa9f /base | |
parent | 4ca7dac5704a5b7e22ddb4952c38c09fbbcaa0bd (diff) |
[feat] Add git rpush alias to simplify pushing new repos
Diffstat (limited to 'base')
-rw-r--r-- | base/gitconfig | 1 |
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) |