git get local branches Edit Delete branch git list local git for-each-ref refs/heads --format='%(refname:lstrip=2)'