Created
May 22, 2020 01:29
-
-
Save stefanlasiewski/c4723433e742be0dc675f03b93d50250 to your computer and use it in GitHub Desktop.
Print all git branches without needing to quit or needing to remember yet another flag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
By default, `git branch` by default uses a pager, which requires that you quit out of the pager, which erases the results fmor your screen | |
stefanl@stefanl:zfs git branch --all | |
* master | |
remotes/origin/HEAD -> origin/master | |
remotes/origin/master | |
remotes/origin/top | |
remotes/origin/zfs-0.6.3-stable | |
(END)^C | |
*WIPE* | |
stefanl@stefanl:zfs | |
Instead, just pipe it through `cat`: | |
stefanl@stefanl:zfs $ git branch --all |cat | |
* master | |
remotes/origin/HEAD -> origin/master | |
remotes/origin/master | |
remotes/origin/top | |
remotes/origin/zfs-0.6.3-stable | |
remotes/origin/zfs-0.6.4-release | |
remotes/origin/zfs-0.6.5-release | |
remotes/origin/zfs-0.7-release | |
remotes/origin/zfs-0.8-release | |
stefanl@stefanl:zfs $ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment