Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do a wildcard filter of branch names

Tags:

git

git branch --all lists lots of branches, and I am looking for one that includes the string 1234, which is an issue number in our project management system.

The following works in PowerShell and I am wanting to replace it with something shell agnostic.

PS> git branch --all | where { $_ -like "*1234*" }

How do we do this with git and git alone?

like image 446
Shaun Luttin Avatar asked Oct 28 '15 20:10

Shaun Luttin


People also ask

How to use wildcard in data filtering in Excel?

Let’s see how we can use this wildcard in filtering our data. Step 1: Select the data. Step 2: Go to Data Tab >> Sort & Filter Group >> Filter. Shortcut Key: Ctrl+Shift+L. Step 3: Click on the down arrow button near your header.

How to create a single wildcard search filter that allows searching?

How to create a single wildcard search filter that allows searching by multiple keywords? The following steps are demonstrated in the attached workbook. The required calculation fields differ depending on whether the search is an AND or OR search. Create a parameter named as Search Terms (Comma Separated). Current value: keep it blank.

How to use wildcards in SQL?

SQL wildcard allows us to filter data matching certain patterns in SQL. We use SQL wildcards with the LIKE operator in the WHERE clause of a query to filter data. In this beginner’s article, we’ll look at everything you need to know about basic SQL wildcards.

How to filter views using wildcard parameters in tableau?

How to filter views using wildcard parameters. The result of these steps can be reviewed in the attached .twbx. In Tableau Desktop, connect to the Superstore sample data. Select Data > Connect to Data, and then connect to the Coffee Chain sample data. In the Data pane, click the Superstore sample data. Drag Region to Rows. Drag Sales to Text.


1 Answers

git branch --list "*1234*" does what you need. Or git branch --list \*1234\*

like image 182
Paul Hicks Avatar answered Oct 04 '22 08:10

Paul Hicks