In this example, we shall learn how to delete Git local branch. To delete a branch, it must be fully merged in its upstream branch, or in HEAD if no upstream was set. 1. A brief on Git branch A branch represents an independent line of development. These serve as an abstraction for the edit, ...