# Tips and Tricks

## SSH Tuning

Add these lines to your `~/.ssh/config`:

```
Host gerrit.lix.systems
    User YOUR_GERRIT_USERNAME
    Port 2022
    # Keep sessions open for a bit in the background to make connections faster:
    ControlMaster auto
    ControlPath /tmp/ssh-%r@%h:%p
    ControlPersist 120
```

Now you can use `ssh://gerrit.lix.systems/lix` instead of `ssh://USERNAME@gerrit.lix.systems:2022/lix` URL, and have faster iterations on a change!

## Splitting Commits

Sometimes a commit that was supposed to be a single feature gets out of hand. You have options. `git rebase -i` is a "default" suggestion, but you might want to look at `git-revise` or even at Jujutsu, which has a pretty cool [squash workflow](https://steveklabnik.github.io/jujutsu-tutorial/real-world-workflows/the-squash-workflow.html) to do this!