# git: Add option to branch from default branch in branch picker \(\#34663\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9fa634f02faeec4ac0c428e55ba01755472b98f5)

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

Visibility: public

Requested revision: 9fa634f02faeec4ac0c428e55ba01755472b98f5

Requested commit: 9fa634f02faeec4ac0c428e55ba01755472b98f5

Commit: 9fa634f02faeec4ac0c428e55ba01755472b98f5

Tree: 20e68920ece31e173598308a614a15e1628e840f

Author: Anthony Eid

Committer: GitHub

## Message

```
git: Add option to branch from default branch in branch picker (#34663)

Closes #33700

The option shows up as an icon that appears on entries that would create
a new branch. You can also branch from the default by secondary
confirming, which the icon has a tooltip for as well.

We based the default branch on the results from this command: `git
symbolic-ref refs/remotes/upstream/HEAD` and fallback to `git
symbolic-ref refs/remotes/origin/HEAD`

Release Notes:

- Add option to create a branch from a default branch in git branch
picker

---------

Co-authored-by: Cole Miller <cole@zed.dev>
```

## Parents

- [fa8dd1c54740dbab38e2b4488d51c89d7ad6bb03](https://git.cafe/gitcafe/zed/commit/fa8dd1c54740dbab38e2b4488d51c89d7ad6bb03?format=markdown)

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