Below command shows, all the git branches (local, remote) in the local git repository. The remote branches list the local git repository won’t be updated automatically even someone removes the remote branch on the server. We can use the below command to update the local list of remote git branches. Instead of the above command,…