Google's 25th Birthday - Google turns 25, celebrates birthday with a doodle.

Google, everyone's favourite search engine, turned 25 years old on Wednesday and is celebrating its birthday with a doodle. Taking a “walk down memory lane”, the company showcased different doodles on its birthday over the years. The latest one comes with a GIF which turns ‘Google’ into ‘G25gle’ - marking the 25 years.

Delete all branches except master or main branch

To delete all branches in your Git repository except master, simply issue the following command:

$ git branch | grep -v "master" | xargs git branch -D

If you want to delete branches such as master-prod, master-test or master-ui, you can adjust the RegEx used by the grep as follows:

$ git branch | grep -v " master$" | xargs git branch -D

Remove all Git branches but main
To delete all branches in Git except main, simply replace the grep for master with a grep for main:

$ git branch | grep -v "main" | xargs git branch -D
$ git branch | grep -v " main$" | xargs git branch -D


Popular posts from this blog

Google doodle celebrates India Republic Day