Skip to content

Pull from Git automatically

2:08 · 6 chapters ·

lpm can pull your teammates' commits into your local projects by itself. A blue arrow in the sidebar shows that origin has new commits; rest the pointer on it and turn on auto pull for all projects or just one. From then on each background check pulls new commits in by itself, with a note you can undo, and the project's Git menu keeps an Undo auto pull too. Auto pull only ever fast-forwards: it waits while you have uncommitted changes, while you have commits of your own to push, and while an agent is working in the project. Turn it off for one project from its Git menu, or choose Off, Chosen or All in Settings › Git.

Transcript

The narration, chapter by chapter. Pick a time to play from there.

Intro

Your teammates push, and lpm pulls their commits in for you, waits whenever your own work is in the way, and undoes any pull in one click.

New commits

Here are three projects your team works on. The blue arrow next to storefront means origin has three new commits you don't have yet. lpm checks for them in the background, every ten minutes.

Turn it on

Rest the pointer on it, and a card says what's new and offers to pull for you from now on. Choose Turn on for all projects. storefront pulls right away, and a note says three commits came in. Now a teammate pushes one more commit. There's nothing to click: on lpm's next check, storefront pulls it in by itself, with a note of its own.

Undo a pull

Any pull can be undone, from its note, or later from the project's menu: right-click storefront, open Git, and choose Undo auto pull. storefront is back where it was, one commit behind, and auto pull leaves that commit alone until something newer arrives.

When it waits

Auto pull never pulls over your own work. client-portal has changes I haven't committed, so its arrow is gray. Rest on it, and the card says it's waiting for them. docs has a commit of mine that isn't pushed yet, so a pull would mix the two histories. Auto pull leaves that to you: Sync, when you're ready. It also waits while an agent is working in a project.

Choose which projects pull

To keep a project still, like docs, right-click it, open Git, and under Auto pull, choose Off. Everything else is in Settings, and the card on any arrow links straight to it. Check for new commits finds them, and Auto pull is Off, Chosen, for just the projects you turn on, or All. Below it, lpm lists the projects that differ, like docs. Turn it on once, and your projects keep up with your team by themselves, without ever pulling over your own work.

More in AI coding agents and Git

All lessons