aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author alemi <[email protected]>2024-12-10 11:57:48 +0100
committer alemi <[email protected]>2024-12-10 11:57:48 +0100
commitb9266acf5a59b44254ddb371fa9a06135be36007 (patch)
treefa1ad4e7ee97eda66ca1ef0814b6662e45805e1d
parent4b8c1a64765b486a7d598982d1142f702ddf8f86 (diff)
docs: update tci aliasHEADdev
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9c90d31..7dd5002 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,8 @@ and done! should enable tci for all repos (if they are configured to allow it)
just run
```sh
-git config --global alias.tci '!func(){ git checkout tci && git pull && git merge $1 && git push; git checkout $1; }; func'
+git config --global alias.tci '!func(){ BRANCH=\"$1\"; REMOTE=\"origin\"; if [ -n \"$2\" ]; then REMOTE=\"$2\"; fi; git checkout tci && git pull $REMOTE tci && git merge $BRANCH && git push $REMOTE tci; git checkout $BRANCH; }; func"'
+
```
it will add a `git tci <branch>` alias, which you can use to quickly checkout, pull, merge and push on tci branch