Skip to content

Commit

Permalink
upd git.md
Browse files Browse the repository at this point in the history
  • Loading branch information
halyph committed Nov 26, 2023
1 parent e549f13 commit 81ae5cd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/wiki/howtos/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,20 @@ git branch -r | grep origin/dependabot/go_modules/ | cut -d '/' -f 2- | xargs gi
git fetch --all --prune
git checkout -b <branch> <remote_repo>/<remote_branch>
```

## Git branch command behaves like `less`

- SO: [Git branch command behaves like 'less'](https://stackoverflow.com/questions/48341920/git-branch-command-behaves-like-less)
- [git - Release Notes v.2.16](https://github.com/git/git/blob/master/Documentation/RelNotes/2.16.0.txt#L85)

!!! info
```
"git branch --list" learned to show its output through the pager by
default when the output is going to a terminal, which is controlled
by the pager.branch configuration variable. This is similar to a
recent change to "git tag --list".
```

```shell
git config --global pager.branch false
```

0 comments on commit 81ae5cd

Please sign in to comment.