Google doodle celebrates India Republic Day

Image
India achieved independence from the British Raj on 15 August 1947 following the Indian independence movement. The independence came through the Indian Independence Act 1947 (10 & 11 Geo 6 c 30), an Act of the Parliament of the United Kingdom that partitioned British India into the two new independent Dominions of the British Commonwealth (later Commonwealth of Nations India obtained its independence on 15 August 1947 as a constitutional monarchy with George VI as head of state and the Earl Mountbatten as governor-general. Google addded a doodle to celebrate this India Republic Day 2023.

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

Comments

Popular posts from this blog