summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2024-12-21 14:19:42 -0500
committerBen Sima <ben@bsima.me>2024-12-21 14:19:42 -0500
commit27904066fd204a2b844c27132e86f83acf217eed (patch)
tree61d276c7a1c1eb4722f579a5488e9e3670a7b4e0
parent70543fc1ef9733fb754cecda96805349cb36de32 (diff)
Add a 'git live' command aliasHEADlive
This is the correct way to publish commits. Previously I was doing the annoying `git branch -f live HEAD && git push` thing. This is better because its a single command and doing the subsequent `git sync -u` will update your local `live` branch.
-rw-r--r--.envrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.envrc b/.envrc
index ac0f498..c25bd04 100644
--- a/.envrc
+++ b/.envrc
@@ -53,6 +53,8 @@
git config --local branchless.test.alias.lint 'export CI=1; git clean -ffdx; eval $(direnv export bash); bild Omni/Lint.hs; lint **/*'
git config --local branchless.test.alias.lintfix 'export CI=1; git clean -ffdx; eval $(direnv export bash); bild Omni/Lint.hs; lint --fix **/*'
git config --local branchless.test.alias.ci 'export CI=1; git clean -ffdx; eval $(direnv export bash); Omni/Ci.sh'
+# use this to submit work
+ git config --local alias.live "push origin HEAD:live"
#
# end here if we are in CI
[[ -n "CI" ]] && exit 0