diff options
| author | 2024-12-10 11:57:48 +0100 | |
|---|---|---|
| committer | 2024-12-10 11:57:48 +0100 | |
| commit | b9266acf5a59b44254ddb371fa9a06135be36007 (patch) | |
| tree | fa1ad4e7ee97eda66ca1ef0814b6662e45805e1d | |
| parent | 4b8c1a64765b486a7d598982d1142f702ddf8f86 (diff) | |
| -rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
