# Refresh branch upstream after checkout and invalidate git queries · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/f145a453b56828af4ad61263ca267ebaeec5a141)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: f145a453b56828af4ad61263ca267ebaeec5a141

Requested commit: f145a453b56828af4ad61263ca267ebaeec5a141

Commit: f145a453b56828af4ad61263ca267ebaeec5a141

Tree: c055f6ceef8fab3edae3f4ba9aa1c01b595db2c3

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Refresh branch upstream after checkout and invalidate git queries

- fetch tracked remote after checkout to update ahead/behind counts
- add integration test for behind count when remote branch advances
- invalidate git React Query data on `turn/completed` events in the web app

```

## Parents

- [1f4f693dd6525814996741c32a97dda0ed574939](https://git.cafe/gitcafe/t3code/commit/1f4f693dd6525814996741c32a97dda0ed574939?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/f145a453b56828af4ad61263ca267ebaeec5a141?format=markdown)
